Skip to content

Commit 0132601

Browse files
authored
Merge pull request #99 from Crell/aviz
Document how to use aviz
2 parents 7096729 + 5724087 commit 0132601

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
@@ -667,12 +667,13 @@ engine and language handles them. When present, they MUST be in the following or
667667

668668
* Inheritance modifier: `abstract` or `final`
669669
* Visibility modifier: `public`, `protected`, or `private`
670+
* Set-visibility modifier: `public(set)`, `protected(set)`, or `private(set)`
670671
* Scope modifier: `static`
671672
* Mutation modifier: `readonly`
672673
* Type declaration
673674
* Name
674675

675-
All keywords MUST be on a single line, and MUST be separated by a single space.
676+
All keywords MUST be on a single line, and MUST be separated by a single space. All keywords MUST be all lower-case. The `public` keyword MAY be omitted when using a set-visibility on a public-read property.
676677

677678
The following is a correct example of modifier keyword usage:
678679

@@ -687,6 +688,10 @@ abstract class ClassName
687688

688689
private readonly int $beep;
689690

691+
protected private(set) string $name;
692+
693+
protected(set) string $boop;
694+
690695
abstract protected function zim();
691696

692697
final public static function bar()

0 commit comments

Comments
 (0)