rfc:propertygetsetsyntax-v1.2
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
rfc:propertygetsetsyntax-v1.2 [2013/01/15 03:09] cpriest Added section on abstract accessors |
rfc:propertygetsetsyntax-v1.2 [2017/09/22 13:28] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
* Version: 1.2 | * Version: 1.2 | ||
* Created: 2012-12-29 | * Created: 2012-12-29 | ||
- | * Author: Clint Priest <phpdev | + | |
+ | | ||
* Contributors: | * Contributors: | ||
- | * Status: | + | * Status: |
==== Fork ==== | ==== Fork ==== | ||
Line 366: | Line 367: | ||
/* Fatal error: Abstract function Foo:: | /* Fatal error: Abstract function Foo:: | ||
+ | </ | ||
+ | |||
+ | You may also declare an entire property as abstract such as: | ||
+ | |||
+ | <code php> | ||
+ | class Foo { | ||
+ | abstract public $bar { | ||
+ | get; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | /* This marks all declared accessors as abstract, as well as the class. | ||
+ | would need to provide a body for any declared accessors */ | ||
</ | </ | ||
Line 432: | Line 446: | ||
| | ||
public $dataArray { | public $dataArray { | ||
- | &get { return $this-> | + | &get() { return $this-> |
+ | set(& | ||
} | } | ||
} | } | ||
Line 553: | Line 568: | ||
Implementation Details Document: https:// | Implementation Details Document: https:// | ||
+ | |||
+ | ===== Impact on APC and other Zend extensions ===== | ||
+ | |||
+ | In addition to the " | ||
+ | |||
+ | Most Zend extensions should not be affected by this change. Accessors are normal '' | ||
+ | |||
+ | One extension that will require minor changes is APC. APC has to copy all '' | ||
+ | |||
+ | Thus the impact of the change on Zend exts is rather small. | ||
===== Tests ===== | ===== Tests ===== | ||
- | * 2012-12-30 : 67 tests at this time | + | * 2012-12-30: 67 tests at this time |
+ | * 2013-01-17: 83 tests at this time | ||
+ | |||
+ | ===== Voting ===== | ||
+ | |||
+ | Voting ends not before Wednesday, January 23rd 2013. The PHP language is expanded, so a 2/3 majority is required. | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Change Log ===== | ===== Change Log ===== |
rfc/propertygetsetsyntax-v1.2.1358219381.txt.gz · Last modified: 2017/09/22 13:28 (external edit)