$layouts IDs of the posts the builder flag marks. */ public function __construct(private bool $available = true, private array $layouts = []) { } public function isAvailable(): bool { return $this->available; } public function usesBuilder(int $postId): bool { return in_array($postId, $this->layouts, true); } }