for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SumoCoders\FrameworkSearchBundle\Entity;
class SearchResult
{
/**
* @var string
*/
protected $bundle;
protected $class;
protected $id;
protected $route;
protected $title;
* @var int
protected $weight;
* @param string $class
* @param mixed $id
* @param string $bundle
* @param string $title
* @param string $route
public function __construct($class, $id, $bundle, $title, $route)
$this->setClass($class);
$this->setId($id);
$this->setBundle($bundle);
$this->setTitle($title);
$this->setRoute($route);
}
protected function setBundle($bundle)
$this->bundle = $bundle;
* @return string
public function getBundle()
return $this->bundle;
protected function setClass($class)
$this->class = $class;
public function getClass()
return $this->class;
protected function setId($id)
$this->id = (string) $id;
public function getId()
return $this->id;
protected function setRoute($route)
$this->route = $route;
public function getRoute()
return $this->route;
protected function setTitle($title)
$this->title = $title;
public function getTitle()
return $this->title;
* @param int $weight
public function setWeight($weight)
$this->weight = $weight;
* @return int
public function getWeight()
return $this->weight;