GDS\Mapper\ProtoBuf::configureGoogleKeyPathElement PHP Method

configureGoogleKeyPathElement() private method

Configure a Google Key Path Element object
private configureGoogleKeyPathElement ( google\appengine\datastore\v4\Key\PathElement $obj_path_element, array $arr_kpe )
$obj_path_element google\appengine\datastore\v4\Key\PathElement
$arr_kpe array
    private function configureGoogleKeyPathElement(Key\PathElement $obj_path_element, array $arr_kpe)
    {
        $obj_path_element->setKind($arr_kpe['kind']);
        isset($arr_kpe['id']) && $obj_path_element->setId($arr_kpe['id']);
        isset($arr_kpe['name']) && $obj_path_element->setName($arr_kpe['name']);
    }