| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class Car |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @Id |
||
| 22 | * @Column(type="integer") |
||
| 23 | * @GeneratedValue(strategy="IDENTITY") |
||
| 24 | */ |
||
| 25 | private $id; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var Engine |
||
| 29 | * @Cache("READ_ONLY") |
||
| 30 | * @ManyToOne(targetEntity="Engine") |
||
| 31 | * @JoinColumn(name="engine", referencedColumnName="id", nullable=false) |
||
| 32 | */ |
||
| 33 | protected $engine; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Car constructor. |
||
| 37 | * @param Engine $engine |
||
| 38 | * @param string $color |
||
| 39 | */ |
||
| 40 | public function __construct(Engine $engine) |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return mixed |
||
| 47 | */ |
||
| 48 | public function getId() |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return Engine |
||
| 55 | */ |
||
| 56 | public function getEngine(): Engine |
||
| 61 |