- assert: documentation ( source)
<?php
class C {
private $a;
private $b;
public function __construct($a, $b) {
$this->a = $a;
$this->b = $b;
}
public function doSomethingWithA() { /**/ }
public function doSomethingWithB() { /**/ }
}
$c = new C("foo", null);
assert($c->a === "foo");