Zend\Mvc\Controller\AbstractRestfulController::head PHP Метод

head() публичный Метод

Not marked as abstract, as that would introduce a BC break (introduced in 2.1.0); instead, raises an exception if not implemented.
public head ( null | mixed $id = null ) : mixed
$id null | mixed
Результат mixed
    public function head($id = null)
    {
        $this->response->setStatusCode(405);
        return ['content' => 'Method Not Allowed'];
    }

Usage Example

Пример #1
0
 /**
  * @param null|int $id
  * @return mixed
  */
 public function head($id = null)
 {
     return parent::head($id);
     // @TODO: Change the autogenerated stub
 }