1<?php
2
3namespace Sabre\DAVACL\PrincipalBackend;
4
5use Sabre\DAV\MkCol;
6
7/**
8 * Implement this interface to add support for creating new principals to your
9 * principal backend.
10 *
11 * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
12 * @author Evert Pot (http://evertpot.com/)
13 * @license http://sabre.io/license/ Modified BSD License
14 */
15interface CreatePrincipalSupport extends BackendInterface {
16
17    /**
18     * Creates a new principal.
19     *
20     * This method receives a full path for the new principal. The mkCol object
21     * contains any additional webdav properties specified during the creation
22     * of the principal.
23     *
24     * @param string $path
25     * @param MkCol $mkCol
26     * @return void
27     */
28    function createPrincipal($path, MkCol $mkCol);
29
30}
31