Пример #1
0
 /**
  * Constructor.
  *
  * @param string $max
  * @param int    $groupIdx
  * @param int    $nestingLevel
  */
 public function __construct($max, $groupIdx, $nestingLevel)
 {
     $this->max = $max;
     $this->groupIdx = $groupIdx;
     $this->nestingLevel = $nestingLevel;
     parent::__construct(sprintf('Group %d at nesting level %d exceeds maximum nesting level of %d.', $groupIdx, $nestingLevel, $max));
 }
 /**
  * Constructor.
  *
  * @param int $max
  * @param int $count
  * @param int $groupIdx
  * @param int $nestingLevel
  */
 public function __construct($max, $count, $groupIdx, $nestingLevel)
 {
     $this->max = $max;
     $this->count = $count;
     $this->groupIdx = $groupIdx;
     $this->nestingLevel = $nestingLevel;
     parent::__construct(sprintf('Group "%d" at nesting level %d exceeds maximum number of groups, maximum: %d, total of groups: %d.', $groupIdx, $nestingLevel, $max, $count));
 }
 /**
  * Constructor.
  *
  * @param string $fieldName
  * @param int    $max
  * @param int    $groupIdx
  * @param int    $nestingLevel
  */
 public function __construct($fieldName, $max, $groupIdx, $nestingLevel)
 {
     $this->fieldName = $fieldName;
     $this->max = $max;
     $this->groupIdx = $groupIdx;
     $this->nestingLevel = $nestingLevel;
     parent::__construct(sprintf('Field "%s" in group %d at nesting level %d exceeds the maximum number of values %d per group.', $fieldName, $groupIdx, $nestingLevel, $max));
 }
 public function __construct(SearchConditionInterface $condition)
 {
     parent::__construct('The search condition contains one or more invalid values.');
     $this->condition = $condition;
 }
Пример #5
0
 /**
  * Constructor.
  *
  * @param string $fieldName
  */
 public function __construct($fieldName)
 {
     $this->fieldName = $fieldName;
     parent::__construct(sprintf('Field "%s" is not registered in the FieldSet or available as alias.', $fieldName));
 }
 /**
  * Constructor.
  *
  * @param string $fieldName
  * @param string $valueType
  */
 public function __construct($fieldName, $valueType)
 {
     $this->fieldName = $fieldName;
     $this->valueType = $valueType;
     parent::__construct(sprintf('Field "%s" does not accept %s values.', $fieldName, $valueType));
 }