src/ClassGeneration/PhpClass.php
public function generateGettersAndSettersFromProperties()
    {
        $propertyIterator = $this->getPropertyCollection()->getIterator();
        foreach ($propertyIterator as $property) {
            $this->getMethodCollection()->add(Method::createGetterFromProperty($property));
            $this->getMethodCollection()->add(Method::createSetterFromProperty($property));
        }
    }
public function generateGettersAndSettersFromProperties()
    {
        $propertyIterator = $this->getPropertyCollection()->getIterator();
        foreach ($propertyIterator as $property) {
            $this->getMethodCollection()->add(Method::createGetterFromProperty($property));
            $this->getMethodCollection()->add(Method::createSetterFromProperty($property));
        }
    }
public function generateGettersAndSettersFromProperties ( ) { $ propertyIterator = $ this -> getPropertyCollection ( ) -> getIterator ( ) ; foreach ( $ propertyIterator as $ property ) { $ this -> getMethodCollection ( ) -> add ( Method :: createGetterFromProperty ( $ property ) ) ; $ this -> getMethodCollection ( ) -> add ( Method :: createSetterFromProperty ( $ property ) ) ; } }
Create all getters and setters from Property Collection.
@return void
Create all getters and setters from Property Collection .