CollectionLinks::schema()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 8
rs 10
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
 * CollectionLinks class
11
 *
12
 * @codeCoverageIgnore
13
 */
14
final class CollectionLinks extends Model
15
{
16
    protected function schema(SchemaBuilder $schema): Schema
17
    {
18
        $schema->string("first")->nullable();
19
        $schema->string("last")->nullable();
20
        $schema->string("prev")->nullable();
21
        $schema->string("next")->nullable();
22
23
        return $schema->build();
24
    }
25
}