<?php namespace Test; class Test { private $s; private $i; public function __construct(string $s, int $i) { $this->s = $s; $this->i = $i; } public function foo() { return $this->s . ' ' . $this->i; } } $a = new Test('', '0'); echo $a->foo();
You have javascript disabled. You will not be able to edit any code.