34. class Customer
{
/** @Validation({ @MinLength(6) }) */
public $name;
/** @Validation({ @Choice({"male", "female"}) }) */
public function getGender();
/** @Validation({ @Valid }) */
public $gender;
}
35. Type Check String Other
AssertTrue AssertType MinLength Min
AssertFalse Date MaxLength Max
Blank DateTime Regex Choice
NotBlank Time Url Valid
Null Email Collection
NotNull File
36. ● Constraints can be put on
— Classes
— Properties
— Methods with a "get" or "is" prefix