Source of file SvnCommit.php
Size: 1,360 Bytes - Last Modified: 2013-07-17T08:22:21+02:00
/home/theseer/Downloads/Symfony/vendor/symfony/symfony/src/Symfony/Component/Intl/Util/SvnCommit.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 | <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Intl\Util; /** * An SVN commit. * * @author Bernhard Schussek <bschussek@gmail.com> */ class SvnCommit { /** * @var \SimpleXMLElement */ private $svnInfo; /** * Creates a commit from the given "svn info" data. * * @param \SimpleXMLElement $svnInfo The XML result from the "svn info" * command. */ public function __construct(\SimpleXMLElement $svnInfo) { $this->svnInfo = $svnInfo; } /** * Returns the revision of the commit. * * @return string The revision of the commit. */ public function getRevision() { return (string) $this->svnInfo['revision']; } /** * Returns the author of the commit. * * @return string The author name. */ public function getAuthor() { return (string) $this->svnInfo->author; } /** * Returns the date of the commit. * * @return string The commit date. */ public function getDate() { return (string) $this->svnInfo->date; } } |