for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\Tests\Models\CMS;
use Doctrine\ORM\Annotation as ORM;
/**
* CmsProduct
*
* @ORM\Entity
* @ORM\Table(name="cms_products")
*/
class CmsProduct
{
* @ORM\Column(type="integer")
* @ORM\Id @ORM\GeneratedValue
public $id;
/** @ORM\Column(type="string") */
public $name;
/** @ORM\Column(type="decimal") */
public $price;
/** @ORM\Column(type="datetime") */
public $created_at;
public function getId()
return $this->id;
}
public function getPrice()
return $this->price;
public function setPrice(float $price)
$this->price = $price;