src/Services/DistanceMatrix/DistanceMatrixResponseElement.php
public function setStatus($status)
    {
        if (!in_array($status, DistanceMatrixElementStatus::getDistanceMatrixElementStatus())) {
            throw DistanceMatrixException::invalidDistanceMatrixResponseElementStatus();
        }

        $this->status = $status;
    }
public function setStatus($status)
    {
        if (!in_array($status, DistanceMatrixElementStatus::getDistanceMatrixElementStatus())) {
            throw DistanceMatrixException::invalidDistanceMatrixResponseElementStatus();
        }

        $this->status = $status;
    }
Sets the distance matrix response status.

@param string $status The distance matrix status.

@throws \Ivory\GoogleMap\Exception\DistanceMatrixException If the status is not valid.