for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="widgets")
*/
class Widget
{
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
private $id;
* @ORM\Column(type="string", length=100)
private $name;
* @return mixed
public function getType()
return $this->type;
}
* @param mixed $type
* @return Widget
public function setType($type)
$this->type = $type;
return $this;
public function getWidth()
return $this->width;
* @param mixed $width
public function setWidth($width)
$this->width = $width;
public function getHeight()
return $this->height;
* @param mixed $height
public function setHeight($height)
$this->height = $height;
public function getX()
return $this->x;
* @param mixed $x
public function setX($x)
$this->x = $x;
public function getY()
return $this->y;
* @param mixed $y
public function setY($y)
$this->y = $y;
* @ORM\Column(type="string", length=10)
private $type;
* @ORM\Column(type="integer", options={"default" : 2})
private $width = 2;
* @ORM\Column(type="integer", options={"default" : 1})
private $height = 1;
private $x;
private $y;
* @ORM\ManyToOne(inversedBy="widgets",targetEntity="AppBundle\Entity\Variable")
private $variable;
* @return Variable
public function getVariable()
return $this->variable;
* @param mixed $variable
public function setVariable($variable)
$this->variable = $variable;
public function getId()
return $this->id;
* @param mixed $id
* @return Device
public function setId($id)
$this->id = $id;
public function getName()
return $this->name;
* @param mixed $name
public function setName($name)
$this->name = $name;
public function __toString()
return $this->getName();