public function __construct(a\Asset $a) { if ($a == NULL) { throw new e\TestException("The asset is NULL."); } $this->asset = $a; $this->service = $a->getService(); $this->cascade = new a\Cascade($this->service); }