Skip to content

Commit b4b67f5

Browse files
committed
Document how to use aviz.
1 parent f8ced3a commit b4b67f5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spec.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,12 +659,13 @@ engine and language handles them. When present, they MUST be in the following or
659659

660660
* Inheritance modifier: `abstract` or `final`
661661
* Visibility modifier: `public`, `protected`, or `private`
662+
* Set-visibility modifier: `public(set)`, `protected(set)`, or `private(set)`
662663
* Scope modifier: `static`
663664
* Mutation modifier: `readonly`
664665
* Type declaration
665666
* Name
666667

667-
All keywords MUST be on a single line, and MUST be separated by a single space.
668+
All keywords MUST be on a single line, and MUST be separated by a single space. All keywords MUST be all lower-case. When using a set-visibility on a public-read property, omitting the `public` keyword is RECOMMENDED but NOT REQUIRED.
668669

669670
The following is a correct example of modifier keyword usage:
670671

@@ -679,6 +680,10 @@ abstract class ClassName
679680

680681
private readonly int $beep;
681682

683+
protected private(set) string $name;
684+
685+
protected(set) string $boop;
686+
682687
abstract protected function zim();
683688

684689
final public static function bar()

0 commit comments

Comments
 (0)