PHPCD\PHPCD::proptype PHP Method

proptype() public method

Fetch class attribute's type by @var annotation
public proptype ( $class_name, $name ) : [type1,
return [type1,
    public function proptype($class_name, $name)
    {
        list($path, $doc) = $this->doc($class_name, $name, false);
        $types = $this->typeByDoc($path, $doc, $class_name);
        if (!$types) {
            $types = $this->typeByPropertyRead($doc, $path, $name);
        }
        return $types;
    }