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