PropertyOption example

return $group;
    }

    /** * @param array $data * * @return PropertyOption */
    public function createPropertyOption($data)
    {
        $option = new PropertyOption();
        $option->setId($data['id']);
        $option->setName($data['name']);
        $option->setPosition((int) $data['position']);

        if ($data['media']) {
            $option->setMedia($this->createMedia($data['media']));
        }
        $option->addAttributes($this->createAttributes($data['attributes']));

        return $option;
    }

    
Home | Imprint | This part of the site doesn't use cookies.