src/Sismo/Commit.php
public function setStatusCode($status)
    {
        if (!in_array($status, array('building', 'success', 'failed'))) {
            throw new \InvalidArgumentException(sprintf('Invalid status code "%s".', $status));
        }

        $this->status = $status;
    }
public function setStatusCode($status)
    {
        if (!in_array($status, array('building', 'success', 'failed'))) {
            throw new \InvalidArgumentException(sprintf('Invalid status code "%s".', $status));
        }

        $this->status = $status;
    }
public function setStatusCode ( $ status ) { if ( ! in_array ( $ status , array ( 'building' , 'success' , 'failed' ) ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid status code "%s".' , $ status ) ) ; } $ this -> status = $ status ; }
Sets the build status code of the commit.

Can be one of "building", "success", or "failed".

@param string $status The commit build status code
Sets the build status code of the commit .