/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Import/EntityField
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Import/EntityField/EntityField.php (2380B)
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
namespace PrestaShop\PrestaShop\Core\Import\EntityField;
/**
* Class EntityField defines an entity field.
*/
final class EntityField implements EntityFieldInterface
{
/**
* @var string
*/
private $name;
/**
* @var string
*/
private $label;
/**
* @var string
*/
private $description;
/**
* @var bool
*/
private $required;
/**
* @param string $name
* @param string $label
* @param string $description
* @param bool $required
*/
public function __construct($name, $label, $description = '', $required = false)
{
$this->name = $name;
$this->label = $label;
$this->description = $description;
$this->required = $required;
}
/**
* {@inheritdoc}
*/
public function getName()
{
return $this->name;
}
/**
* Get field's label.
*
* @return string
*/
public function getLabel()
{
return $this->label;
}
/**
* Get field's description.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* {@inheritdoc}
*/
public function isRequired()
{
return $this->required;
}
}