src/ClassGeneration/Property.php
public function setType($type)
    {
        $this->type = (string)$type;
        $this->getDocBlock()->getTagCollection()->removeByName(Tag::TAG_VAR);

        $tag = Tag::createFromProperty($this);

        $this->getDocBlock()->addTag($tag);

        return $this;
    }
public function setType($type)
    {
        $this->type = (string)$type;
        $this->getDocBlock()->getTagCollection()->removeByName(Tag::TAG_VAR);

        $tag = Tag::createFromProperty($this);

        $this->getDocBlock()->addTag($tag);

        return $this;
    }
public function setType ( $ type ) { $ this -> type = ( string ) $ type ; $ this -> getDocBlock ( ) -> getTagCollection ( ) -> removeByName ( Tag :: TAG_VAR ) ; $ tag = Tag :: createFromProperty ( $ this ) ; $ this -> getDocBlock ( ) -> addTag ( $ tag ) ; return $ this ; }
Sets the property's type.

@param string $type

@return Property
Sets the property s type .