Copied!
    CloneableInstantiable
    Methods
    public __construct( $element, string $attributeName)
     

    Creates a list of space-separated tokens based on the attribute value of an element.

    • param \DOMElement|null $element
    • param string $attributeName
    public __get(string $name)
     

    Returns the value for the property specified.

    • param string $name The name of the property
    • return int|string The value of the property specified
    public __toString() : string
     
    • return string
    public add(string $tokens)
     
      public contains(string $token) : bool
       
        public entries() : ArrayIterator
         
          public item(int $index)
          public remove(string $tokens)
           
            public replace(string $old, string $new)
             
              public toggle(string $token, ?bool $force = NULL) : bool
               
                Properties
                private $attributeName = NULL
                 
                • var string
                private $element = NULL
                 
                • var \DOMElement|null
                private $previousValue = NULL
                 
                • var string|null
                private $tokens = []
                 
                • var string[]
                • psalm-var list
                Methods
                private setAttributeValue()
                 
                • return \DOMAttr|false|null
                private tokenize()
                 
                • return void
                © 2024 Bruce Wells
                Search Namespaces \ Classes
                Configuration