for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AlgoWeb\xsdTypes;
use AlgoWeb\xsdTypes\Facets\LengthTrait;
/**
* The type xsd:NOTATION represents a reference to a notation. A notation is a method of interpreting XML and
* non-XML content. For example, if an element in an XML document contains binary graphics data in JPEG format,
* a notation can be declared to indicate that this is JPEG data. An attribute of type xsd:NOTATION can then be used
* to indicate which notation applies to the element's content. A xsd:NOTATION value must be a QName.
*
* xsd:NOTATION is the only built-in type that cannot be the type of attributes or elements. Instead,
* you must define a new type that restricts xsd:NOTATION, applying one or more enumeration facets.
* Each of these enumeration values must match the name of a declared notation.
* @package AlgoWeb\xsdTypes
*/
abstract class xsNOTATION extends xsAnySimpleType
{
use LengthTrait;
* Construct.
* @param string $value
public function __construct($value)
parent::__construct($value);
$this->setWhiteSpaceFacet('collapse');
}
protected function isOK()
$this->checkLength($this->value);
$Qname = new xsQName($this->value);
$this->value = $Qname->__toString();