phpDocumentor\Reflection\DocBlock\Tag\ReturnTag::getTypes PHP 메소드

getTypes() 공개 메소드

Returns the unique types of the variable.
public getTypes ( ) : string[]
리턴 string[]
    public function getTypes()
    {
        return $this->getTypesCollection()->getArrayCopy();
    }

Usage Example

예제 #1
0
 /**
  * Creates a new Descriptor from the given Reflector.
  *
  * @param ReturnTag $data
  *
  * @return ReturnDescriptor
  */
 public function create($data)
 {
     $descriptor = new ReturnDescriptor($data->getName());
     $descriptor->setDescription($data->getDescription());
     $descriptor->setTypes($this->builder->buildDescriptor(new Collection($data->getTypes())));
     return $descriptor;
 }
All Usage Examples Of phpDocumentor\Reflection\DocBlock\Tag\ReturnTag::getTypes