src/Kreta/Component/VCS/Factory/CommitFactory.php
public function create($sha, $message, BranchInterface $branch, $author, $url)
    {
        $commit = new $this->className();

        return $commit
            ->setSHA($sha)
            ->setMessage($message)
            ->setBranch($branch)
            ->setAuthor($author)
            ->setUrl($url);
    }
public function create($sha, $message, BranchInterface $branch, $author, $url)
    {
        $commit = new $this->className();

        return $commit
            ->setSHA($sha)
            ->setMessage($message)
            ->setBranch($branch)
            ->setAuthor($author)
            ->setUrl($url);
    }
public function create ( $ sha , $ message , BranchInterface $ branch , $ author , $ url ) { $ commit = new $ this -> className ( ) ; return $ commit -> setSHA ( $ sha ) -> setMessage ( $ message ) -> setBranch ( $ branch ) -> setAuthor ( $ author ) -> setUrl ( $ url ) ; }
Creates a Commit object with the given response by the VCS provider.

@param string                                                $sha     The sha
@param string                                                $message The message
@param \Kreta\Component\VCS\Model\Interfaces\BranchInterface $branch  The branch
@param string                                                $author  the author
@param string                                                $url     The url

@return \Kreta\Component\VCS\Model\Interfaces\CommitInterface
Creates a Commit object with the given response by the VCS provider .