| 1 | <?php |
||
| 15 | class Event |
||
| 16 | { |
||
| 17 | use ORMBehaviors\Timestampable\Timestampable; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | * |
||
| 22 | * @ORM\Column(name="id", type="integer") |
||
| 23 | * @ORM\Id |
||
| 24 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 25 | */ |
||
| 26 | private $id; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | * |
||
| 31 | * @ORM\Column(name="name", type="string", length=255) |
||
| 32 | */ |
||
| 33 | private $googleId; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var ArrayCollection|$users[] |
||
| 37 | * @ORM\ManyToMany(targetEntity="AppBundle\Entity\User", mappedBy="events", cascade={"persist"}) |
||
| 38 | */ |
||
| 39 | private $users = []; |
||
| 40 | |||
| 41 | public function __construct() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get id |
||
| 48 | * |
||
| 49 | * @return integer |
||
| 50 | */ |
||
| 51 | public function getId() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Set googleId |
||
| 58 | * |
||
| 59 | * @param string $googleId |
||
| 60 | * |
||
| 61 | * @return Event |
||
| 62 | */ |
||
| 63 | public function setGoogleId($googleId) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Get googleId |
||
| 72 | * |
||
| 73 | * @return string |
||
| 74 | */ |
||
| 75 | public function getGoogleId() |
||
| 79 | |||
| 80 | /** |
||
| 81 | * Add user |
||
| 82 | * |
||
| 83 | * @param User $user |
||
| 84 | * |
||
| 85 | * @return Event |
||
| 86 | */ |
||
| 87 | public function addUser(User $user) |
||
| 93 | |||
| 94 | /** |
||
| 95 | * Remove user |
||
| 96 | * |
||
| 97 | * @param User $user |
||
| 98 | */ |
||
| 99 | public function removeUser(User $user) |
||
| 103 | |||
| 104 | /** |
||
| 105 | * Get users |
||
| 106 | * |
||
| 107 | * @return ArrayCollection |
||
| 108 | */ |
||
| 109 | public function getUsers() |
||
| 113 | } |
||
| 114 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..