for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SimpleSAML\SAML2\Certificate;
use SimpleSAML\SAML2\Assert\Assert;
use SimpleSAML\SAML2\Utilities\ArrayCollection;
/**
* Simple collection object for transporting keys
*/
class KeyCollection extends ArrayCollection
{
* Add a key to the collection
*
* @param \SimpleSAML\SAML2\Certificate\Key $element
* @throws \SimpleSAML\Assert\AssertionFailedException if assertions are false
public function add($element): void
Assert::isInstanceOf($element, Key::class);
parent::add($element);
}