public function controls($display = true)
    {
        if($display) {
            $this->attributes['controls'] = true;
        } else {
            unset($this->attributes['controls']);
        }

        return $this;
    }
public function controls($display = true)
    {
        if($display) {
            $this->attributes['controls'] = true;
        } else {
            unset($this->attributes['controls']);
        }

        return $this;
    }
public function controls ( $ display = true ) { if ( $ display ) { $ this -> attributes [ 'controls' ] = true ; } else { unset ( $ this -> attributes [ 'controls' ] ) ; } return $ this ; }
Allows to set or remove the HTML5 default controls

@param bool $display
@return $this
Allows to set or remove the HTML5 default controls