src/Entities/Products/ProductExtraSet.php
public function getExtraByID($extraID)
    {
        foreach ($this->getExtras() as $extra) {
            if ($extra->getId() == $extraID) {
                return $extra;
            }
        }

        return null;
    }
public function getExtraByID($extraID)
    {
        foreach ($this->getExtras() as $extra) {
            if ($extra->getId() == $extraID) {
                return $extra;
            }
        }

        return null;
    }
@param $extraID

@return ProductExtra|null