for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MovingImage\Client\VMPro\Entity;
use JMS\Serializer\Annotation\Type;
/**
* Class Channel.
*
* @author Ruben Knol <[email protected]>
*/
class Channel
{
* @Type("integer")
private $id;
* @Type("string")
private $name;
* @Type("ArrayCollection<MovingImage\Client\VMPro\Entity\Channel>")
private $children;
* @Type("MovingImage\Client\VMPro\Entity\Channel")
private $parent = null;
* @return string
public function getName()
return $this->name;
}
* @param string $name
* @return Channel
public function setName($name)
$this->name = $name;
return $this;
* @return int
public function getId()
return $this->id;
* @param int $id
public function setId($id)
$this->id = $id;
public function getParent()
return $this->parent;
public function setParentOnChildren()
foreach ($this->getChildren() as $child) {
$child->parent = $this;
public function getChildren()
return $this->children;
public function setChildren($children)
$this->children = $children;