public function createPrincipal($path, MkCol $mkCol)
    {
        $stmt = $this->pdo->prepare('INSERT INTO '.$this->tableName.' (uri) VALUES (?)');
        $stmt->execute([$path]);
        $this->updatePrincipal($path, $mkCol);
    }
public function createPrincipal($path, MkCol $mkCol)
    {
        $stmt = $this->pdo->prepare('INSERT INTO '.$this->tableName.' (uri) VALUES (?)');
        $stmt->execute([$path]);
        $this->updatePrincipal($path, $mkCol);
    }
public function createPrincipal ( $ path , MkCol $ mkCol ) { $ stmt = $ this -> pdo -> prepare ( 'INSERT INTO ' . $ this -> tableName . ' (uri) VALUES (?)' ) ; $ stmt -> execute ( [ $ path ] ) ; $ this -> updatePrincipal ( $ path , $ mkCol ) ; }
Creates a new principal.

This method receives a full path for the new principal. The mkCol object
contains any additional webdav properties specified during the creation
of the principal.

@param string $path
@param MkCol  $mkCol
Creates a new principal .