src/Model/Environment.php
public function getHeadCommit()
    {
        $base = Project::getProjectBaseFromUrl($this->getUri()) . '/git/commits';

        return Commit::get($this->head_commit, $base, $this->client);
    }
public function getHeadCommit()
    {
        $base = Project::getProjectBaseFromUrl($this->getUri()) . '/git/commits';

        return Commit::get($this->head_commit, $base, $this->client);
    }
public function getHeadCommit ( ) { $ base = Project :: getProjectBaseFromUrl ( $ this -> getUri ( ) ) . '/git/commits' ; return Commit :: get ( $ this -> head_commit , $ base , $ this -> client ) ; }
Get the Git commit for the HEAD of this environment.

@return Commit|false
Get the Git commit for the HEAD of this environment .