public function __construct(Inspector $inspector = null) { if (!$inspector) { $inspector = new Inspector(); } $this->inspector = $inspector; }