Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class FixedAttributeValueProvider implements AttributeValueProviderInterface |
||
18 | { |
||
19 | /** @var Attribute[] */ |
||
20 | protected $attributes = []; |
||
21 | |||
22 | /** |
||
23 | * @return FixedAttributeValueProvider |
||
24 | */ |
||
25 | public function add(Attribute $attribute) |
||
26 | { |
||
27 | $this->attributes[] = $attribute; |
||
28 | |||
29 | return $this; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param \LightSaml\Model\Assertion\Attribute[] $attributes |
||
34 | * |
||
35 | * @return FixedAttributeValueProvider |
||
36 | */ |
||
37 | public function setAttributes(array $attributes) |
||
38 | { |
||
39 | $this->attributes = []; |
||
40 | foreach ($attributes as $attribute) { |
||
41 | $this->add($attribute); |
||
42 | } |
||
43 | |||
44 | return $this; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return Attribute[] |
||
49 | */ |
||
50 | public function getValues(AssertionContext $context) |
||
53 | } |
||
54 | } |
||
55 |