Пример #1
0
 /**
  * @param AddressService $addressService
  * @param string         $fieldName
  */
 public function __construct(AddressService $addressService, $fieldName)
 {
     $this->addressService = $addressService;
     $this->fieldName = $fieldName;
     $this->messageTemplates[self::MISSING_COUNTRY_CODE] = 'No country was provided via context';
     parent::__construct();
 }
Пример #2
0
 public function __construct($options = [])
 {
     parent::__construct($options);
     $this->setMessage('Este campo é requerido.', self::IS_EMPTY);
 }
Пример #3
0
 public function __construct($options = null)
 {
     parent::__construct(self::NULL);
     $this->setMessage("Value can't be null", self::IS_EMPTY);
 }