CollectionMeta   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A schema() 0 10 1
1
<?php
2
3
namespace Ipag\Sdk\Model\Collection;
4
5
use Ipag\Sdk\Model\Model;
6
use Ipag\Sdk\Model\Schema\SchemaBuilder;
7
use Ipag\Sdk\Model\Schema\Schema;
8
9
/**
10
 * CollectionMeta class
11
 *
12
 * @codeCoverageIgnore
13
 */
14
final class CollectionMeta extends Model
15
{
16
    protected function schema(SchemaBuilder $schema): Schema
17
    {
18
        $schema->int("current_page")->nullable();
19
        $schema->int("last_page")->nullable();
20
        $schema->int("from")->nullable();
21
        $schema->int("to")->nullable();
22
        $schema->int("per_page")->nullable();
23
        $schema->int("total")->nullable();
24
25
        return $schema->build();
26
    }
27
}