<?php class Foo { private $bar; private $baz; public function __construct() { //return $this; } public function setBar($bar) { $this->bar = $bar; return $this; } public function setBaz($baz) { $this->baz = $baz; return $this; } } $foo = (new Foo)->setBar(1)->setBaz(2); var_dump($foo); $bar = [];
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`