1 | <?php |
||
15 | class BusinessPage extends Page |
||
16 | { |
||
17 | const TYPE = 'business_page'; |
||
18 | |||
19 | /** |
||
20 | * Auto simple mode: joined entity. |
||
21 | * |
||
22 | * @var BaseEntityProxy |
||
23 | * |
||
24 | * @ORM\ManyToOne(targetEntity="\Victoire\Bundle\CoreBundle\Entity\EntityProxy", cascade={"persist", "remove"}) |
||
25 | * @ORM\JoinColumn(name="entityProxy_id", referencedColumnName="id", onDelete="CASCADE") |
||
26 | */ |
||
27 | protected $entityProxy; |
||
28 | |||
29 | /** |
||
30 | * The entity linked to the page. |
||
31 | * |
||
32 | * @var object |
||
33 | */ |
||
34 | protected $businessEntity; |
||
35 | |||
36 | /** |
||
37 | * Set the entity proxy. |
||
38 | * |
||
39 | * @param BaseEntityProxy $entityProxy |
||
40 | */ |
||
41 | public function setEntityProxy($entityProxy) |
||
45 | |||
46 | /** |
||
47 | * Get the entity proxy. |
||
48 | * |
||
49 | * @return BaseEntityProxy |
||
50 | */ |
||
51 | public function getEntityProxy() |
||
55 | |||
56 | /** |
||
57 | * Get the business entity name (PagePattern proxy). |
||
58 | * |
||
59 | * @return string |
||
60 | **/ |
||
61 | public function getBusinessEntityId() |
||
65 | |||
66 | /** |
||
67 | * Get the business entity. |
||
68 | * |
||
69 | * @return number |
||
70 | */ |
||
71 | public function getBusinessEntity() |
||
85 | } |
||
86 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.