Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
8 / 8
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
Link
100.00% covered (success)
100.00%
8 / 8
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 getDefaults
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
1
 __toString
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace BO\Zmsentities;
4
5class Link extends Schema\Entity
6{
7    public const PRIMARY = 'id';
8
9    public static $schema = "link.json";
10
11    #[\Override]
12    public function getDefaults()
13    {
14        return [
15            'name' => '',
16            'url' => '',
17            'target' => true,
18            'public' => false,
19            'organisation' => 0
20        ];
21    }
22
23    public function __toString()
24    {
25        return "Link {$this->name}-{$this->url}- with target " . $this->target;
26    }
27}