src/Utility/MetadataExtractor.php
private function verifyVariableType($value)
    {
        // if value can be mapped to simple type
       if (in_array(strtolower($value), array("string","float","double","boolean", "integer"))) {
           return new SimpleEntity(strtolower($value));
       }

       // generate names
       // try it
       foreach ($this->generateObjectNames($value) as $name) {
           $name = $this->addNameSpaceToPotentialClassName($name);
           if (class_exists($name)) {
               return new ObjectEntity($name);
           }
       }

        return new UnknownEntity($value);
    }
private function verifyVariableType($value)
    {
        // if value can be mapped to simple type
       if (in_array(strtolower($value), array("string","float","double","boolean", "integer"))) {
           return new SimpleEntity(strtolower($value));
       }

       // generate names
       // try it
       foreach ($this->generateObjectNames($value) as $name) {
           $name = $this->addNameSpaceToPotentialClassName($name);
           if (class_exists($name)) {
               return new ObjectEntity($name);
           }
       }

        return new UnknownEntity($value);
    }
Verifies type and creates entity object
@param string $value
@return AbstractEntity