for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SimpleSAML\XML\Type;
use SimpleSAML\XML\Assert\Assert;
use SimpleSAML\XML\Exception\SchemaViolationException;
/**
* @package simplesaml/xml-common
*/
class EntitiesValue extends TokenValue
{
* Validate the content.
*
* @param string $content
* @throws \SimpleSAML\XML\Exception\SchemaViolationException on failure
* @return void
protected function validateContent(string $content): void
// Note: content must already be sanitized before validating
Assert::validEntities($this->sanitizeContent($content), SchemaViolationException::class);
}