1 | <?php |
||
13 | abstract class AbstractData |
||
14 | { |
||
15 | /** |
||
16 | * @var Result Link to Result object |
||
17 | */ |
||
18 | protected $result; |
||
19 | |||
20 | /** |
||
21 | * @var string Name |
||
22 | */ |
||
23 | protected $name; |
||
24 | |||
25 | /** |
||
26 | * @param string $name |
||
27 | */ |
||
28 | public function setName(string $name) |
||
32 | |||
33 | /** |
||
34 | * @param string $type |
||
35 | */ |
||
36 | public function setType(string $type) |
||
40 | |||
41 | /** |
||
42 | * @var string Type |
||
43 | */ |
||
44 | protected $type; |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getName(): string |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getType(): string |
||
61 | |||
62 | public function __construct(Result $result) |
||
66 | } |