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

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);
}