src/Entity/Person.php
/**
     * @param Entity $entity
     *
     * @return Person|null Person if this collection contained the specified entity, null otherwise.
     */
@param Entity $entity
@return Person|null Person if this collection contained the specified entity, null otherwise.
@param Entity $entity @return Person|null Person if this collection contained the specified entity null otherwise .
public function removeEntity(Entity $entity): ?Person
    {
        $this->entities->removeElement($entity);
        return (null !== $entity->removePerson($this))
            ? $this
            : null;
    }
public function removeEntity ( Entity $ entity ) : ? Person { $ this -> entities -> removeElement ( $ entity ) ; return ( null !== $ entity -> removePerson ( $ this ) ) ? $ this : null ; }
@param Entity $entity
 @return Person|null Person if this collection contained the specified entity, null otherwise.
@param Entity $entity @return Person|null Person if this collection contained the specified entity null otherwise .