%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/public_html/admin1/vendor/gitonomy/gitlib/src/Gitonomy/Git/ |
Upload File : |
<?php
/**
* This file is part of Gitonomy.
*
* (c) Alexandre Salomé <alexandre.salome@gmail.com>
* (c) Julien DIDIER <genzo.wm@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Gitonomy\Git;
/**
* @author Alexandre Salomé <alexandre.salome@gmail.com>
*/
class Revision
{
/**
* @var Repository
*/
protected $repository;
/**
* @var string
*/
protected $revision;
public function __construct(Repository $repository, $revision)
{
$this->repository = $repository;
$this->revision = $revision;
}
/**
* @return Log
*/
public function getLog($paths = null, $offset = null, $limit = null)
{
return $this->repository->getLog($this, $paths, $offset, $limit);
}
/**
* Returns the last modification date of the reference.
*
* @return Commit
*/
public function getCommit()
{
return $this->getLog()->getSingleCommit();
}
/**
* @return string
*/
public function getRevision()
{
return $this->revision;
}
/**
* @return Repository
*/
public function getRepository()
{
return $this->repository;
}
}