1 | <?php namespace GenericCollections; |
||
12 | class Options implements BaseOptions |
||
13 | { |
||
14 | const UNIQUE_VALUES = 1; |
||
15 | const ALLOW_NULLS = 2; |
||
16 | const COMPARISON_EQUAL = 4; |
||
17 | |||
18 | /** @var bool null members property */ |
||
19 | private $allowNullMembers; |
||
20 | |||
21 | /** @var bool duplicates property */ |
||
22 | private $uniqueValues; |
||
23 | |||
24 | /** @var bool comparison is identical */ |
||
25 | private $comparisonIsIdentical; |
||
26 | |||
27 | /** @var int original options value */ |
||
28 | private $options; |
||
29 | |||
30 | /** |
||
31 | * Create a Options object based on a numeric value |
||
32 | * |
||
33 | * @param int $options |
||
34 | */ |
||
35 | 447 | public function __construct($options) |
|
46 | |||
47 | 441 | public function optionAllowNullMembers() |
|
51 | |||
52 | 360 | public function optionUniqueValues() |
|
56 | |||
57 | 348 | public function optionComparisonIsIdentical() |
|
61 | |||
62 | /** |
||
63 | * Return the options value |
||
64 | * |
||
65 | * @return int |
||
66 | */ |
||
67 | 27 | public function getOptions() |
|
71 | } |
||
72 |