Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0efdda7

Browse files
committed
[book] [validation] Constraints can be applied to an entire class too
1 parent9860554 commit0efdda7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎book/validation.rst‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,11 @@ For information on translating the constraint messages, see
511511
Constraint Targets
512512
------------------
513513

514-
Constraints can be applied to a class property (e.g. ``name``) or a public
515-
getter method (e.g. ``getFullName``). The first is the most common and easy
516-
to use, but the second allows you to specify more complex validation rules.
514+
Constraints can be applied to a class property (e.g. ``name``), a public
515+
getter method (e.g. ``getFullName``) or an entire class. Property constraints
516+
are the most common and easy to use. Getter constraints allow you to specify
517+
more complex validation rules. Finally, class constraints are intended
518+
for scenarios where you want to validate a class as a whole.
517519

518520
..index::
519521
single: Validation; Property constraints

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp