| 1 | <?php |
||
| 13 | class DataSet |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $pattern; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $properties = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * DataSet constructor. |
||
| 27 | * |
||
| 28 | * @param string $pattern |
||
| 29 | */ |
||
| 30 | public function __construct(string $pattern) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getPattern() : string |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $pattern |
||
| 45 | */ |
||
| 46 | protected function setPattern(string $pattern) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return array |
||
| 53 | */ |
||
| 54 | public function getProperties() : array |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param array $properties |
||
| 61 | * |
||
| 62 | * @return DataSet |
||
| 63 | */ |
||
| 64 | public function setProperties(array $properties) : DataSet |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @param string $key |
||
| 77 | * @param string $value |
||
| 78 | * |
||
| 79 | * @return DataSet |
||
| 80 | */ |
||
| 81 | public function addProperty(string $key, string $value) : DataSet |
||
| 87 | } |
||
| 88 |