public function getParents()
    {
        $result = array();
        foreach ($this->getData('parentHashes') as $parentHash) {
            $result[] = $this->repository->getCommit($parentHash);
        }

        return $result;
    }
public function getParents()
    {
        $result = array();
        foreach ($this->getData('parentHashes') as $parentHash) {
            $result[] = $this->repository->getCommit($parentHash);
        }

        return $result;
    }
public function getParents ( ) { $ result = array ( ) ; foreach ( $ this -> getData ( 'parentHashes' ) as $ parentHash ) { $ result [ ] = $ this -> repository -> getCommit ( $ parentHash ) ; } return $ result ; }
Returns the parent commits.

@return array An array of Commit objects
Returns the parent commits .