1 | <?php |
||
10 | class Filesystem |
||
11 | { |
||
12 | /** @var \League\Flysystem\Filesystem */ |
||
13 | protected $flysystem; |
||
14 | |||
15 | /** @var \Spatie\SchemaOrg\Generator\Writer\Template */ |
||
16 | protected $typeTemplate; |
||
17 | |||
18 | public function __construct(string $root) |
||
26 | |||
27 | public function clear() |
||
32 | |||
33 | public function cloneStaticFiles() |
||
48 | |||
49 | public function createType(Type $type) |
||
56 | |||
57 | public function createBuilderClass(TypeCollection $types) |
||
64 | } |
||
65 |
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: