Created
December 12, 2018 13:41
-
-
Save tsh-code/fd3aa46c55c86b84cc937d4894dafac7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ... | |
class Lesson | |
{ | |
/** | |
* ... | |
* @Assert\NotBlank() | |
* @Assert\Length(max="255") | |
*/ | |
public $name; | |
/** | |
* ... | |
* @Assert\NotBlank() | |
*/ | |
public $subject; | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment