protected function getTitle()
    {
        if (null !== $this->title) {
            return $this->title;
        }

        if (null === $this->title
            && $this->type == 'http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html'
            && array_key_exists($this->getStatus(), $this->problemStatusTitles)
        ) {
            return $this->problemStatusTitles[$this->status];
        }

        if ($this->detail instanceof \Throwable) {
            return get_class($this->detail);
        }

        if (null === $this->title) {
            return 'Unknown';
        }

        return $this->title;
    }
protected function getTitle()
    {
        if (null !== $this->title) {
            return $this->title;
        }

        if (null === $this->title
            && $this->type == 'http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html'
            && array_key_exists($this->getStatus(), $this->problemStatusTitles)
        ) {
            return $this->problemStatusTitles[$this->status];
        }

        if ($this->detail instanceof \Throwable) {
            return get_class($this->detail);
        }

        if (null === $this->title) {
            return 'Unknown';
        }

        return $this->title;
    }
protected function getTitle ( ) { if ( null !== $ this -> title ) { return $ this -> title ; } if ( null === $ this -> title && $ this -> type == 'http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html' && array_key_exists ( $ this -> getStatus ( ) , $ this -> problemStatusTitles ) ) { return $ this -> problemStatusTitles [ $ this -> status ] ; } if ( $ this -> detail instanceof \ Throwable ) { return get_class ( $ this -> detail ) ; } if ( null === $ this -> title ) { return 'Unknown' ; } return $ this -> title ; }
Retrieve the title

If the default $type is used, and the $status is found in
$problemStatusTitles, then use the matching title.

If no title was provided, and the above conditions are not met, use the
string 'Unknown'.

Otherwise, use the title provided.

@return string
Retrieve the title