| 1 | <?php |
||
| 25 | class Set extends AbstractSet |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * The type of elements stored in this set |
||
| 29 | * |
||
| 30 | * A set's type is immutable. For this reason, this property is private |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $setType; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Constructs a Set object of the specified type, |
||
| 38 | * optionally with the specified data |
||
| 39 | * |
||
| 40 | * @param string $setType |
||
| 41 | * @param array $data |
||
| 42 | */ |
||
| 43 | public function __construct($setType, array $data = []) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Returns the type associated with this set |
||
| 51 | * |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getType() |
||
| 58 | } |
||
| 59 |