for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ONGR package.
*
* (c) NFQ Technologies UAB <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ONGR\RouterBundle\Document;
use ONGR\ElasticsearchBundle\Annotation as ES;
/**
* Trait that adds SEO fields to document.
trait SeoAwareTrait
{
* @var string URL.
* @ES\Property(name="url", type="string", options={"analyzer"="urlAnalyzer"})
private $url;
* @return string
public function getUrl()
return $this->url;
}
* @param $url
public function setUrl($url)
$this->url = $url;