1 | <?php |
||
10 | abstract class NamedCommand extends Command implements NamedInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $name; |
||
16 | |||
17 | /** |
||
18 | * @param string $name |
||
19 | */ |
||
20 | public function __construct($name) |
||
24 | |||
25 | /** |
||
26 | * @see \MetaborStd\NamedInterface::getName() |
||
27 | */ |
||
28 | public function getName() |
||
32 | |||
33 | /** |
||
34 | * I would require to provide a name because its really needed for visualisation |
||
35 | * and the class name might be very long and not very descriptive. |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function __toString() |
||
43 | } |
||
44 |