Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
8 / 8
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
ListingHandler
100.00% covered (success)
100.00%
8 / 8
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 resolve
100.00% covered (success)
100.00%
8 / 8
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Cosray\Collection\Schema;
6
7use Cosray\CollectionListMeta;
8
9class ListingHandler extends Handler
10{
11    public function resolve(object $meta, string $class): array
12    {
13        return [
14            'listing' => new CollectionListMeta(
15                showPublished: $meta->published,
16                showLocked: $meta->locked,
17                showHidden: $meta->hidden,
18                showChildren: $meta->children,
19            ),
20        ];
21    }
22}