/** * @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(); }
public function __construct($options = []) { parent::__construct($options); $this->setMessage('Este campo é requerido.', self::IS_EMPTY); }
public function __construct($options = null) { parent::__construct(self::NULL); $this->setMessage("Value can't be null", self::IS_EMPTY); }