93 lines
1.7 KiB
PHP
93 lines
1.7 KiB
PHP
<?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();
|
|
}
|