rfc:property_write_visibility

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:property_write_visibility [2020/06/29 17:00] andreromrfc:property_write_visibility [2020/06/30 20:00] – Use newPassword as it's more valid as example of writeOnly andrerom
Line 137: Line 137:
          
     // Property is write-only in public and protected scope     // Property is write-only in public and protected scope
-    private:public string $newName;+    private:public string $newPassword;
  
     public function __construct(int $id, string $name) {     public function __construct(int $id, string $name) {
Line 161: Line 161:
          
     // Property is write-only in public and protected scope     // Property is write-only in public and protected scope
-    private public(set) string $newName;+    private public(set) string $newPassword;
  
     public function __construct(int $id, string $name) {     public function __construct(int $id, string $name) {
rfc/property_write_visibility.txt · Last modified: 2020/07/07 07:33 by andrerom