public function __isset($propertyName) { switch ($propertyName) { case 'definitionStorage': case 'workflow': return true; } return false; }