public function testParseTagInlineToString()
 {
     $tag = new Tag();
     $tag->setName(Tag::TAG_PROPERTY)->setType('int')->setDescription('property description')->setIsInline();
     $this->assertEquals('{@property int property description}' . PHP_EOL, $tag->toString());
 }
 /**
  * Sets the property's type.
  *
  * @param string $type
  *
  * @return Property
  */
 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;
 }
 /**
  * @inheritdoc
  */
 public function addArgument(ArgumentInterface $argument)
 {
     $this->getArgumentCollection()->add($argument);
     $tag = Tag::createFromArgument($argument);
     $this->getDocBlock()->addTag($tag);
     return $this;
 }