public function getAttributes(): array
    {
        $attributes = [];
        foreach ($this->attributes as $attributeName => $attribute) {
            $value = $attribute->value;
            $attributes[$attributeName] = $value !== '' ? (strstr($value, 'html5-dom-document-internal-entity') !== false ? $this->updateResult($value) : $value) : '';
        }
        return $attributes;
    }
public function getAttributes(): array
    {
        $attributes = [];
        foreach ($this->attributes as $attributeName => $attribute) {
            $value = $attribute->value;
            $attributes[$attributeName] = $value !== '' ? (strstr($value, 'html5-dom-document-internal-entity') !== false ? $this->updateResult($value) : $value) : '';
        }
        return $attributes;
    }
public function getAttributes ( ) : array { $ attributes = [ ] ; foreach ( $ this -> attributes as $ attributeName => $ attribute ) { $ value = $ attribute -> value ; $ attributes [ $ attributeName ] = $ value !== '' ? ( strstr ( $ value , 'html5-dom-document-internal-entity' ) !== false ? $ this -> updateResult ( $ value ) : $ value ) : '' ; } return $ attributes ; }
Returns an array containing all attributes.

@return array An associative array containing all attributes.
Returns an array containing all attributes .