1 | <?php |
||
12 | class Specifications implements SpecificationsInterface, Countable |
||
13 | { |
||
14 | /** |
||
15 | * Collection instance. |
||
16 | * |
||
17 | * @var \Illuminate\Support\Collection |
||
18 | */ |
||
19 | protected $specifications; |
||
20 | |||
21 | /** |
||
22 | * Create a new Specifications instance and instantiates a new Collection. |
||
23 | */ |
||
24 | public function __construct() |
||
28 | |||
29 | /** |
||
30 | * {@inheritDoc} |
||
31 | */ |
||
32 | public function add(AttributeScore $attributeScore): SpecificationsInterface |
||
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | public function addMany(array $attributeScores = []): SpecificationsInterface |
||
52 | |||
53 | /** |
||
54 | * {@inheritDoc} |
||
55 | */ |
||
56 | public function set(Attribute $attribute, Score $score): SpecificationsInterface |
||
62 | |||
63 | /** |
||
64 | * {@inheritDoc} |
||
65 | */ |
||
66 | public function has(Attribute $attribute): bool |
||
72 | |||
73 | /** |
||
74 | * {@inheritDoc} |
||
75 | */ |
||
76 | public function get(Attribute $attribute): AttributeScore |
||
82 | |||
83 | /** |
||
84 | * {@inheritDoc} |
||
85 | */ |
||
86 | public function forget(Attribute $attribute): SpecificationsInterface |
||
94 | |||
95 | /** |
||
96 | * {@inheritDoc} |
||
97 | */ |
||
98 | public function all(): Collection |
||
102 | |||
103 | /** |
||
104 | * {@inheritDoc} |
||
105 | */ |
||
106 | public function count(): int |
||
110 | } |
||
111 |