src/Entities/Products/ProductOptionSet.php
public function getOptionByID($optionID)
    {
        foreach ($this->getOptions() as $option) {
            if ($option->getId() == $optionID) {
                return $option;
            }
        }

        return null;
    }
public function getOptionByID($optionID)
    {
        foreach ($this->getOptions() as $option) {
            if ($option->getId() == $optionID) {
                return $option;
            }
        }

        return null;
    }
@param $optionID

@return ProductOption|null