1 | <?php |
||
3 | namespace Dynamic\DynamicBlocks\Block; |
||
4 | |||
5 | use SheaDawson\Blocks\Controllers\BlockController; |
||
6 | use SheaDawson\Blocks\Model\Block; |
||
7 | |||
8 | 12 | class SlideshowBlock extends Block |
|
9 | { |
||
10 | 12 | /** |
|
11 | * @return string |
||
12 | */ |
||
13 | public function singular_name() |
||
17 | |||
18 | 1 | /** |
|
19 | * @return string |
||
20 | */ |
||
21 | public function plural_name() |
||
36 | } |
Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.