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\Store\TrustOptions;
use LightSaml\Meta\TrustOptions\TrustOptions;
class StaticTrustOptionsStore implements TrustOptionsStoreInterface
{
/** @var TrustOptions[] */
protected $options = [];
/**
* @param string $entityId
* @return StaticTrustOptionsStore
public function add($entityId, TrustOptions $options)
$this->options[$entityId] = $options;
return $this;
}
* @return TrustOptions|null
public function get($entityId)
return isset($this->options[$entityId]) ? $this->options[$entityId] : null;
* @return bool
public function has($entityId)
return isset($this->options[$entityId]);