1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- /*
- * This file is part of the Sylius package.
- *
- * (c); Paweł Jędrzejewski
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Sylius\Component\Attribute\Model;
- /**
- * Attribute value model.
- *
- * This model associates the attribute with its value on the object.
- *
- * @author Paweł Jędrzejewski <pawel@sylius.org>
- */
- interface AttributeValueInterface
- {
- /**
- * Get subject.
- *
- * @return AttributeSubjectInterface
- */
- public function getSubject();
- /**
- * Set subject.
- *
- * @param AttributeSubjectInterface|null $subject
- */
- public function setSubject(AttributeSubjectInterface $subject = null);
- /**
- * Get attribute.
- *
- * @return AttributeInterface
- */
- public function getAttribute();
- /**
- * Set attribute.
- *
- * @param AttributeInterface $attribute
- */
- public function setAttribute(AttributeInterface $attribute);
- /**
- * Get attribute value.
- *
- * @return mixed
- */
- public function getValue();
- /**
- * Set attribute value.
- *
- * @param mixed $value
- */
- public function setValue($value);
- /**
- * Proxy method to access the name from real attribute.
- *
- * @return string
- */
- public function getName();
- /**
- * Proxy method to access the presentation from real attribute.
- *
- * @return string
- */
- public function getPresentation();
- /**
- * The type of the attribute.
- *
- * @return string
- */
- public function getType();
- /**
- * Get attribute configuration.
- *
- * @return array
- */
- public function getConfiguration();
- }
|