summaryrefslogtreecommitdiff
path: root/server/vendor/php-opencloud/common/src/Common/Resource/Creatable.php
blob: 5f16bfafa3eb2a6d4367988dbfe557582a03da9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php declare(strict_types=1);

namespace OpenCloud\Common\Resource;

/**
 * Represents a resource that can be created.
 *
 * @package OpenCloud\Common\Resource
 */
interface Creatable
{
    /**
     * Create a new resource according to the configuration set in the options.
     *
     * @param array $userOptions
     * @return self
     */
    public function create(array $userOptions): Creatable;
}