Re: Request Feedback for Instance Variable Sugar RFC
| From: | S.A.N | Date: | Mon, 09 Mar 2015 20:27:13 +0000 |
| Subject: | Re: Request Feedback for Instance Variable Sugar RFC | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84484@lists.php.net to get a copy of this message | ||
> Someone got an idea ?
Simply arrows, without word "this"
<?php
class Addition {
private $number
public function __construct($number) {
$->number = $number;
}
public function original() {
return $->number;
}
public function addTo($amount) {
return $->number + $amount;
}
}