for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the LightSAML-Core package.
*
* (c) Milos Tomic <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace LightSaml\Provider\Attribute;
use LightSaml\Context\Profile\AssertionContext;
use LightSaml\Model\Assertion\Attribute;
class FixedAttributeValueProvider implements AttributeValueProviderInterface
{
/** @var Attribute[] */
protected $attributes = [];
/**
* @return FixedAttributeValueProvider
public function add(Attribute $attribute)
$this->attributes[] = $attribute;
return $this;
}
* @param \LightSaml\Model\Assertion\Attribute[] $attributes
public function setAttributes(array $attributes)
$this->attributes = [];
foreach ($attributes as $attribute) {
$this->add($attribute);
* @return Attribute[]
public function getValues(AssertionContext $context)
return $this->attributes;