| 1 | <?php |
||
| 13 | class PropertySetSchema |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var PropertySchema[] |
||
| 17 | */ |
||
| 18 | protected $propertySchemas = []; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var bool |
||
| 22 | */ |
||
| 23 | protected $restricted = false; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * |
||
| 27 | * @param string $key |
||
| 28 | * |
||
| 29 | * @return PropertySchema|null |
||
| 30 | * |
||
| 31 | */ |
||
| 32 | public function getPropertySchema($key) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * |
||
| 44 | * |
||
| 45 | * @param string $key |
||
| 46 | * @param PropertySchema $ps |
||
| 47 | * |
||
| 48 | * @return $this |
||
| 49 | */ |
||
| 50 | public function setPropertySchema($key, PropertySchema $ps) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param PropertySchema $ps |
||
| 63 | * |
||
| 64 | * @return $this |
||
| 65 | */ |
||
| 66 | public function addPropertySchema(PropertySchema $ps) |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @return boolean |
||
| 76 | */ |
||
| 77 | public function isRestricted() |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @param boolean $restricted |
||
| 84 | * |
||
| 85 | * @return $this |
||
| 86 | */ |
||
| 87 | public function setRestricted($restricted) |
||
| 93 | } |
||
| 94 |