File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,29 @@ class Company
102102}
103103```
104104
105+ ## Example of use PwzValidator:
106+
107+ PWZ means "licence to practise a profession" (pl. "prawo wykonywania zawodu"),
108+ number given to doctors from NIL (polish Chamber of Physicians and Dentists).
109+ Validator accepts also empty strings and nulls so you have to add "Assert/NotBlank" myself.
110+
111+
112+ ``` php
113+ ...
114+ // src/AppBundle/Entity/Company.php
115+ namespace AppBundle\Entity;
116+
117+ use KiczortPolishValidatorBundle\Validator\Constraints as KiczortAssert;
118+
119+ class Doctor
120+ {
121+ /**
122+ * @KiczortAssert\Pwz
123+ */
124+ protected $pwz;
125+ }
126+ ```
127+
105128# Bug tracking
106129
107130[ GitHub issues] ( https://github.com/kiczort/polish-validator-bundle/issues ) .
You can’t perform that action at this time.
0 commit comments