4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Intl\Util
;
17 * @author Bernhard Schussek <bschussek@gmail.com>
22 * @var \SimpleXMLElement
27 * Creates a commit from the given "svn info" data.
29 * @param \SimpleXMLElement $svnInfo The XML result from the "svn info"
32 public function __construct(\SimpleXMLElement
$svnInfo)
34 $this->svnInfo
= $svnInfo;
38 * Returns the revision of the commit.
40 * @return string The revision of the commit.
42 public function getRevision()
44 return (string) $this->svnInfo
['revision'];
48 * Returns the author of the commit.
50 * @return string The author name.
52 public function getAuthor()
54 return (string) $this->svnInfo
->author
;
58 * Returns the date of the commit.
60 * @return string The commit date.
62 public function getDate()
64 return (string) $this->svnInfo
->date
;