Skip to content

Commit acbc08d

Browse files
committed
Add readme entry
1 parent f9a79ab commit acbc08d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff 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).

0 commit comments

Comments
 (0)