/** * Creates Argument from Property Object. * * @param PropertyInterface $property * * @return Argument */ public static function createFromProperty(PropertyInterface $property) { $argument = new self(); $argument->setName($property->getName())->setType($property->getType()); return $argument; }
/** * Create var tag from property. * * @param PropertyInterface $property * * @return Tag */ public static function createFromProperty(PropertyInterface $property) { $tag = new self(); $tag->setName(self::TAG_VAR); $tag->setType($property->getType()); return $tag; }