app/Customize/Validator/Quantity.php line 26

Open in your IDE?
  1. <?php
  2.     /**
  3.      * @version EC=CUBE4.1
  4.      * @copyright 株式会社 翔 kakeru.co.jp
  5.      * @author
  6.      * 2022年04月26日作成
  7.      *
  8.      * app/Customize/Validator/Quantity.php
  9.      *
  10.      *
  11.      * サンプルをチェックする
  12.      *
  13.      *
  14.      *                              C= C= C= ┌(;・_・)┘トコトコ
  15.      ******************************************************/
  16. namespace Customize\Validator;
  17. use Symfony\Component\Validator\Constraint;
  18. /**
  19.  * @Annotation
  20.  * @Target({"PROPERTY", "METHOD", "ANNOTATION"})
  21.  *
  22.  * @author Bernhard Schussek <bschussek@gmail.com>
  23.  */
  24. class Quantity extends Constraint
  25. {
  26.     public $ClassId;
  27.     public $Limit;
  28.     public $StockLimit;
  29.     public $Flg;
  30.     public $CartType;
  31.     public function __construct($options null)
  32.      {
  33.        # $this->message = $options['message'] ?? '';
  34.         $this->ClassId $options['CalssId'] ?? null;
  35.         $this->Limit   $options['Limit']   ?? null;
  36.         $this->StockLimit $options['StockLimit'] ?? null;
  37.         $this->Flg $options['Flg'] ?? null;
  38.         $this->CartType $options['CrtType'] ?? null;
  39.         parent::__construct($options);
  40.     }
  41. }