protected function buildMethodMaps()
    {

        $getterMap = [];
        $setterMap = [];

        $methods = (new ReflectionObject($this))->getMethods(ReflectionMethod::IS_PUBLIC);

        foreach ($methods as $method) {

            if ($this->isGetter($method)) {
                $getterMap[$this->toPropertyName($method->getName())] = $method->getName();
                continue;
            }

            if ($this->isSetter($method)) {
                $setterMap[$this->toPropertyName($method->getName())] = $method->getName();
                continue;
            }


        }

        return [$getterMap, $setterMap];
    }
protected function buildMethodMaps()
    {

        $getterMap = [];
        $setterMap = [];

        $methods = (new ReflectionObject($this))->getMethods(ReflectionMethod::IS_PUBLIC);

        foreach ($methods as $method) {

            if ($this->isGetter($method)) {
                $getterMap[$this->toPropertyName($method->getName())] = $method->getName();
                continue;
            }

            if ($this->isSetter($method)) {
                $setterMap[$this->toPropertyName($method->getName())] = $method->getName();
                continue;
            }


        }

        return [$getterMap, $setterMap];
    }
protected function buildMethodMaps ( ) { $ getterMap = [ ] ; $ setterMap = [ ] ; $ methods = ( new ReflectionObject ( $ this ) ) -> getMethods ( ReflectionMethod :: IS_PUBLIC ) ; foreach ( $ methods as $ method ) { if ( $ this -> isGetter ( $ method ) ) { $ getterMap [ $ this -> toPropertyName ( $ method -> getName ( ) ) ] = $ method -> getName ( ) ; continue ; } if ( $ this -> isSetter ( $ method ) ) { $ setterMap [ $ this -> toPropertyName ( $ method -> getName ( ) ) ] = $ method -> getName ( ) ; continue ; } } return [ $ getterMap , $ setterMap ] ; }
Returns two lookup arrays of all public getters and setters.

@return array
Returns two lookup arrays of all public getters and setters .