bnomei/kirby-blueprints

View on GitHub
classes/Blueprints/Schema/PageImage.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Bnomei\Blueprints\Schema;

use Bnomei\Blueprints\HasFluentSetter;

/**
 * @method self back(string $back)
 * @method self color(string $color)
 * @method self icon(string $icon)
 * @method self query(string $query)
 */
class PageImage
{
    use HasFluentSetter;

    public function __construct(
        public ?string $back = null,
        public ?string $color = null,
        public ?string $icon = null,
        public ?string $query = null,
    ) {}

    public static function make(
        ?string $back = null,
        ?string $color = null,
        ?string $icon = null,
        ?string $query = null,
    ): self {
        return new self(...func_get_args()); // @phpstan-ignore-line
    }
}