protected function createSetterDoc($name, Type $type, $namespace)
    {
        return new Doc(sprintf(<<<EOD
/**
 * @param %s %s
 *
 * @return self
 */
EOD
        , $type->getDocTypeHint($namespace), '$'.$this->getNaming()->getPropertyName($name)));
    }
protected function createSetterDoc($name, Type $type, $namespace)
    {
        return new Doc(sprintf(<<<EOD
/**
 * @param %s %s
 *
 * @return self
 */
EOD
        , $type->getDocTypeHint($namespace), '$'.$this->getNaming()->getPropertyName($name)));
    }
protected function createSetterDoc ( $ name , Type $ type , $ namespace ) { return new Doc ( sprintf ( <<<EOD
/**
 * @param %s %s
 *
 * @return self
 */
EOD , $ type -> getDocTypeHint ( $ namespace ) , '$' . $ this -> getNaming ( ) -> getPropertyName ( $ name ) ) ) ; }
Return doc for set method.

@param $name
@param Type $type
@param string $namespace

@return Doc
Return doc for set method .