public function setAccept($accept): void
    {
        // allow accept map
        $acceptMap = [
            'ANY' => Request::TYPE_ANY,
            'HTML' => Request::TYPE_HTML,
            'JSON' => Request::TYPE_JSON
        ];

        $accept = strtoupper($accept);

        if (isset($acceptMap[$accept])) {
            $this->accept[] = $acceptMap[$accept];
        }
    }
public function setAccept($accept): void
    {
        // allow accept map
        $acceptMap = [
            'ANY' => Request::TYPE_ANY,
            'HTML' => Request::TYPE_HTML,
            'JSON' => Request::TYPE_JSON
        ];

        $accept = strtoupper($accept);

        if (isset($acceptMap[$accept])) {
            $this->accept[] = $acceptMap[$accept];
        }
    }
public function setAccept ( $ accept ) : void { // allow accept map $ acceptMap = [ 'ANY' => Request :: TYPE_ANY , 'HTML' => Request :: TYPE_HTML , 'JSON' => Request :: TYPE_JSON ] ; $ accept = strtoupper ( $ accept ) ; if ( isset ( $ acceptMap [ $ accept ] ) ) { $ this -> accept [ ] = $ acceptMap [ $ accept ] ; } }
Set accepted types

@param  string $accept

@return void
Set accepted types