public function areReturnTypesStringCompatible($type = null) { if (count($this->returnTypes)) { foreach ($this->returnTypes as $returnType => $definition) { switch ($returnType) { case 'string': return true; } } } return false; }