src/AnnotationProcessor/PropertyInformation.php
public function setType(?string $type): self
    {
        $this->type                          = $this->validateType($type);
        $this->type_hint || $this->type_hint = $this->type;

        return $this;
    }
public function setType(?string $type): self
    {
        $this->type                          = $this->validateType($type);
        $this->type_hint || $this->type_hint = $this->type;

        return $this;
    }
public function setType ( ? string $ type ) : self { $ this -> type = $ this -> validateType ( $ type ) ; $ this -> type_hint || $ this -> type_hint = $ this -> type ; return $ this ; }
Set the type for this property.
The type must be one of the set returned
by getValidTypes.

@see http://php.net/manual/en/language.types.php

@param string|null $type

@throws \DomainException
@throws \InvalidArgumentException
@return PropertyInformation
Set the type for this property . The type must be one of the set returned by getValidTypes .