bnomei/kirby-blueprints

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bnomei\Blueprints\Schema;

use Bnomei\Blueprints\HasFluentSetter;

/**
 * @method self status(string|array $status)
 * @method self template(string|array $template)
 * @method self sortBy(string $sortBy)
 */
class PageNavigation
{
    use HasFluentSetter;

    public function __construct(
        public string|array $status = 'all',
        public string|array $template = 'all',
        public string $sortBy = 'title asc',
    ) {}

    public static function make(
        string|array $status = 'all',
        string|array $template = 'all',
        string $sortBy = 'title asc',
    ): self {
        return new self(...func_get_args()); // @phpstan-ignore-line
    }
}