public function getAttributes():array
    {
        $attributes = $this->attributes;
        if ($this->cssClasses) {
            $attributes['class'] = implode(' ', array_keys($this->cssClasses));
        }
        if ($this->styles) {
            $attributes['style'] = implode(';', $this->styles);
        }
        return $attributes;
    }
public function getAttributes():array
    {
        $attributes = $this->attributes;
        if ($this->cssClasses) {
            $attributes['class'] = implode(' ', array_keys($this->cssClasses));
        }
        if ($this->styles) {
            $attributes['style'] = implode(';', $this->styles);
        }
        return $attributes;
    }
public function getAttributes ( ) : array { $ attributes = $ this -> attributes ; if ( $ this -> cssClasses ) { $ attributes [ 'class' ] = implode ( ' ' , array_keys ( $ this -> cssClasses ) ) ; } if ( $ this -> styles ) { $ attributes [ 'style' ] = implode ( ';' , $ this -> styles ) ; } return $ attributes ; }
Attributes with values
@return array
Attributes with values