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