src/ClassGeneration/Argument.php
public static function createFromProperty(PropertyInterface $property)
    {
        $argument = new self();
        $argument
            ->setName($property->getName())
            ->setType($property->getType());

        return $argument;
    }
public static function createFromProperty(PropertyInterface $property)
    {
        $argument = new self();
        $argument
            ->setName($property->getName())
            ->setType($property->getType());

        return $argument;
    }
public static function createFromProperty ( PropertyInterface $ property ) { $ argument = new self ( ) ; $ argument -> setName ( $ property -> getName ( ) ) -> setType ( $ property -> getType ( ) ) ; return $ argument ; }
Creates Argument from Property Object.

@param PropertyInterface $property

@return Argument
Creates Argument from Property Object .