| 1 | <?php |
||
| 4 | class SpeedPointFactory |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var string|null |
||
| 9 | */ |
||
| 10 | protected $speedpoint_type; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string FQDN |
||
| 14 | */ |
||
| 15 | protected $php_class; |
||
| 16 | |||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string|null $speedpoint_type Short SpeedPoint description that all generated instances have in common. |
||
| 20 | * @param string|null $php_class FQDN of a SpeedPoint class |
||
| 21 | */ |
||
| 22 | public function __construct( ?string $speedpoint_type = null, ?string $php_class = null) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param float $logH Exposure value |
||
| 30 | * @param string|null $php_class Optional: FQDN of a SpeedPoint class |
||
| 31 | * @param string|null $description Optional: Custom SpeedPoint description for the new object |
||
| 32 | * @return SpeedPointInterface |
||
| 33 | */ |
||
| 34 | public function __invoke( float $logH, ?string $php_class = null, ?string $description = null ) |
||
| 39 | } |
||
| 40 |