public function createEntity(string $entity_id, array $parents)
    {
        $entity = new Entity($this, $entity_id, $parents);
        return $entity;
    }
public function createEntity(string $entity_id, array $parents)
    {
        $entity = new Entity($this, $entity_id, $parents);
        return $entity;
    }
public function createEntity ( string $ entity_id , array $ parents ) { $ entity = new Entity ( $ this , $ entity_id , $ parents ) ; return $ entity ; }
Create a new entity and store it.
@param string $entity_id The ID of the entity
@param array $parents The parents of the entity
@throws Exception When the entity_id has already been created for this class
Create a new entity and store it .