19 lines
368 B
PHP
19 lines
368 B
PHP
<?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);
|
|
}
|