for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* GpsLab component.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2011, Peter Gribanov
* @license http://opensource.org/licenses/MIT
*/
namespace GpsLab\Component\Sitemap\Uri;
class SimpleUri implements UriInterface
{
* @var string
protected $loc = '';
* @var \DateTime
protected $last_mod;
protected $change_freq = self::DEFAULT_CHANGE_FREQ;
protected $priority = self::DEFAULT_PRIORITY;
public function __construct($loc)
$this->loc = $loc;
$this->last_mod = new \DateTime();
}
* @return string
public function getLoc()
return $this->loc;
* @return \DateTime
public function getLastMod()
return clone $this->last_mod;
* @param \DateTime $last_mod
* @return SimpleUri
public function setLastMod(\DateTime $last_mod)
$this->last_mod = clone $last_mod;
return $this;
public function getChangeFreq()
return $this->change_freq;
* @param string $change_freq
public function setChangeFreq($change_freq)
$this->change_freq = $change_freq;
public function getPriority()
return $this->priority;
* @param string $priority
public function setPriority($priority)
$this->priority = $priority;