for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TreeHouse\IoBundle\Test\Mock;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use TreeHouse\IoBundle\Entity\Feed;
use TreeHouse\IoBundle\Model\OriginInterface;
class OriginMock implements OriginInterface
{
/**
* @var int
*/
protected $id;
* @var string
protected $name;
protected $title;
protected $priority;
* @var Collection|Feed[]
protected $feeds;
* @param int $id
public function __construct($id)
$this->id = $id;
$this->feeds = new ArrayCollection();
}
* @inheritdoc
public function getId()
return $this->id;
public function setName($name)
$this->name = $name;
return $this;
public function getName()
return $this->name;
public function setTitle($title)
$this->title = $title;
public function getTitle()
return $this->title;
public function setPriority($priority)
$this->priority = $priority;
public function getPriority()
return $this->priority;
public function addFeed(Feed $feeds)
$this->feeds[] = $feeds;
public function removeFeed(Feed $feeds)
$this->feeds->removeElement($feeds);
public function getFeeds()
return $this->feeds;