efureev/php-support

View on GitHub
src/Traits/Maker.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Php\Support\Traits;

/**
 * Trait Maker
 * @package Php\Support\Traits
 */
trait Maker
{
    /**
     * Create a new element.
     *
     * @param mixed ...$arguments
     *
     * @return static
     */
    public static function make(...$arguments)
    {
        // @phpstan-ignore-next-line
        return new static(...$arguments);
    }
}