mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-05 18:41:02 +00:00
twig implementation
This commit is contained in:
parent
2b840e0cfb
commit
4f5b44bd3b
1418 changed files with 108207 additions and 1586 deletions
66
vendor/symfony/intl/Symfony/Component/Intl/Util/SvnCommit.php
vendored
Normal file
66
vendor/symfony/intl/Symfony/Component/Intl/Util/SvnCommit.php
vendored
Normal file
|
@ -0,0 +1,66 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue