for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Alpixel\Bundle\UserBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Model\Group as BaseGroup;
/**
* Group.
*
* @ORM\Table(name="account_group")
* @ORM\Entity
*/
class Group extends BaseGroup
{
* @var integer
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
protected $id;
* @var boolean
* @ORM\Column(name="display", type="boolean", nullable=false)
protected $display;
* Constructor.
public function __construct()
$this->upload = new \Doctrine\Common\Collections\ArrayCollection();
upload
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
class MyClass { } $x = new MyClass(); $x->foo = true;
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:
class MyClass { public $foo; } $x = new MyClass(); $x->foo = true;
}
public function __toString()
return $this->name;
* Get id.
* @return integer
public function getId()
return $this->id;
* Gets the value of display.
* @return boolean
public function getDisplay()
return $this->display;
* Sets the value of display.
* @param boolean $display the display
* @return self
public function setDisplay($display)
$this->display = $display;
return $this;
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: