for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) Flipbox Digital Limited
* @license https://github.com/flipboxfactory/craft-ember/blob/master/LICENSE
* @link https://github.com/flipboxfactory/craft-ember
*/
namespace flipbox\ember\actions\element;
use craft\base\ElementInterface;
use yii\base\Action;
* @author Flipbox Factory <[email protected]>
* @since 1.0.0
abstract class ElementCreate extends Action
{
use traits\Save;
* @inheritdoc
* @return ElementInterface
abstract protected function newElement(array $config = []): ElementInterface;
public function run()
return $this->runInternal($this->newElement());
}
public function statusCodeSuccess(): int
return $this->statusCodeSuccess ?: 201;