public function create($account, $repository, $revision, $params)
    {
        return $this->getClient()->setApiVersion('2.0')->post(
            sprintf('repositories/%s/%s/commit/%s/statuses/build', $account, $repository, $revision),
            json_encode($params),
            array('Content-Type' => 'application/json')
        );
    }
public function create($account, $repository, $revision, $params)
    {
        return $this->getClient()->setApiVersion('2.0')->post(
            sprintf('repositories/%s/%s/commit/%s/statuses/build', $account, $repository, $revision),
            json_encode($params),
            array('Content-Type' => 'application/json')
        );
    }
public function create ( $ account , $ repository , $ revision , $ params ) { return $ this -> getClient ( ) -> setApiVersion ( '2.0' ) -> post ( sprintf ( 'repositories/%s/%s/commit/%s/statuses/build' , $ account , $ repository , $ revision ) , json_encode ( $ params ) , array ( 'Content-Type' => 'application/json' ) ) ; }
Adds a build status to a commit.
If the build is already associated with the commit, a POST also updates the status.

@access public
@param  string           $account    The team or individual account owning the repository.
@param  string           $repository The repository identifier.
@param  string           $revision   A SHA1 value for the commit.
@param  array            $params     The status.
@return MessageInterface

@see https://confluence.atlassian.com/bitbucket/buildstatus-resource-779295267.html
Adds a build status to a commit . If the build is already associated with the commit a POST also updates the status .