protected function createKeyPathElement(array $arr_kpe)
    {
        $obj_element = (object)['kind' => $arr_kpe['kind']];
        if(isset($arr_kpe['id'])) {
            $obj_element->id = $arr_kpe['id'];
        } elseif (isset($arr_kpe['name'])) {
            $obj_element->name = $arr_kpe['name'];
        }
        return $obj_element;
    }
protected function createKeyPathElement(array $arr_kpe)
    {
        $obj_element = (object)['kind' => $arr_kpe['kind']];
        if(isset($arr_kpe['id'])) {
            $obj_element->id = $arr_kpe['id'];
        } elseif (isset($arr_kpe['name'])) {
            $obj_element->name = $arr_kpe['name'];
        }
        return $obj_element;
    }
protected function createKeyPathElement ( array $ arr_kpe ) { $ obj_element = ( object ) [ 'kind' => $ arr_kpe [ 'kind' ] ] ; if ( isset ( $ arr_kpe [ 'id' ] ) ) { $ obj_element -> id = $ arr_kpe [ 'id' ] ; } elseif ( isset ( $ arr_kpe [ 'name' ] ) ) { $ obj_element -> name = $ arr_kpe [ 'name' ] ; } return $ obj_element ; }
Create a Key Path Element from array

@param array $arr_kpe
@return \stdClass
Create a Key Path Element from array