public function setStatus($status)
    {
        if (!in_array($status, DirectionsStatus::getDirectionsStatus())) {
            throw DirectionsException::invalidDirectionsResponseStatus();
        }

        $this->status = $status;
    }
public function setStatus($status)
    {
        if (!in_array($status, DirectionsStatus::getDirectionsStatus())) {
            throw DirectionsException::invalidDirectionsResponseStatus();
        }

        $this->status = $status;
    }
public function setStatus ( $ status ) { if ( ! in_array ( $ status , DirectionsStatus :: getDirectionsStatus ( ) ) ) { throw DirectionsException :: invalidDirectionsResponseStatus ( ) ; } $ this -> status = $ status ; }
Sets the directions response status.

@param string $status The directions response status.

@throws \Ivory\GoogleMap\Exception\DirectionsException If the status is not valid.
Sets the directions response status .