src/ClassGeneration/Method.php
public static function createGetterFromProperty(PropertyInterface $property)
    {
        $method = new self();
        $method->setName('get_' . $property->getName());
        $method->setCode('return $this->' . $property->getName() . ';');

        return $method;
    }
public static function createGetterFromProperty(PropertyInterface $property)
    {
        $method = new self();
        $method->setName('get_' . $property->getName());
        $method->setCode('return $this->' . $property->getName() . ';');

        return $method;
    }
public static function createGetterFromProperty ( PropertyInterface $ property ) { $ method = new self ( ) ; $ method -> setName ( 'get_' . $ property -> getName ( ) ) ; $ method -> setCode ( 'return $this->' . $ property -> getName ( ) . ';' ) ; return $ method ; }
Create a Get Method from Property of Class.

@param PropertyInterface $property

@return Method
Create a Get Method from Property of Class .