| 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") |
||
| 38 | */ |
||
| 39 | private $users = []; |
||
| 40 | |||
| 41 | public function __construct() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get id. |
||
| 48 | * |
||
| 49 | * @return int |
||
| 50 | */ |
||
| 51 | public function getId() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return ArrayCollection |
||
| 58 | */ |
||
| 59 | public function getUsers() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param $users |
||
| 66 | * |
||
| 67 | * @return $this |
||
| 68 | */ |
||
| 69 | public function setUsers($users) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return string |
||
| 78 | */ |
||
| 79 | public function getGoogleId() |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @param string $googleId |
||
| 86 | */ |
||
| 87 | public function setGoogleId($googleId) |
||
| 91 | } |
||
| 92 |
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..