On 8 August 2013 14:12, Matthieu Napoli <matth...@mnapoli.fr> wrote: > class MyClass { > public $foo; > protected $bar; > > public function __construct($this->foo, $this->bar, $baz) { > // $this->foo and $this->bar are now set >
This actually feels _way_ more intuitive to me, it feels like you are passing the parameter directly into that property. With that style, why even limit it to the ctor? function mySetter(array $this->items) {}