| 1 | <?php |
||
| 11 | class MailableFactory |
||
| 12 | { |
||
| 13 | /** @var \Spatie\MailableTest\ArgumentValueProvider */ |
||
| 14 | protected $argumentValueProvider; |
||
| 15 | |||
| 16 | public function __construct(ArgumentValueProvider $argumentValueProvider) |
||
| 20 | |||
| 21 | public function getInstance(string $mailableClass): Mailable |
||
| 31 | |||
| 32 | public function getArguments(string $mailableClass) |
||
| 47 | } |
||
| 48 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: