File "InvalidAttributeValue.php"
Full path: /home/cakedeco/retaildirectonline.co.uk/system/storage/vendor/cardinity/cardinity-sdk-php/src/Exception/InvalidAttributeValue.php
File
size: 559 B (559 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
namespace Cardinity\Exception;
use Symfony\Component\Validator\ConstraintViolationListInterface;
class InvalidAttributeValue extends Runtime
{
/** @type ConstraintViolationListInterface */
private $violations;
public function __construct($message, ConstraintViolationListInterface $violations)
{
$message .= ' Violations: ' . $violations->__toString();
parent::__construct($message);
$this->violations = $violations;
}
public function getViolations()
{
return $this->violations;
}
}