Interface PHPStan\Reflection\AdditionalConstructorsExtension

This is the extension interface to implement if you want to dynamically mark methods as constructor. As opposed to simply list them in the configuration file.

To register it in the configuration file use the phpstan.additionalConstructorsExtension service tag:

services:
	-
		class: App\PHPStan\MyExtension
		tags:
			- phpstan.additionalConstructorsExtension
Methods