protected function getValueForColumns($object, array $columns)
    {
        $value = $object;

        foreach ($columns as $eachKeyColumn) {
            $keyGetterMethod = 'get' . $eachKeyColumn;
            $value = $value->$keyGetterMethod();
        }

        return $value;
    }
protected function getValueForColumns($object, array $columns)
    {
        $value = $object;

        foreach ($columns as $eachKeyColumn) {
            $keyGetterMethod = 'get' . $eachKeyColumn;
            $value = $value->$keyGetterMethod();
        }

        return $value;
    }
protected function getValueForColumns ( $ object , array $ columns ) { $ value = $ object ; foreach ( $ columns as $ eachKeyColumn ) { $ keyGetterMethod = 'get' . $ eachKeyColumn ; $ value = $ value -> $ keyGetterMethod ( ) ; } return $ value ; }
Return the value for a given set of key columns.

Each column will be resolved on the value returned by the previous one.

@param object $object  The object to start with.
@param array  $columns The sequence of key columns.

@return mixed
Return the value for a given set of key columns .