Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
4 / 4
CRAP
100.00% covered (success)
100.00%
1 / 1
SnowflakeExample
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
4 / 4
4
100.00% covered (success)
100.00%
1 / 1
 getSeparator
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getField
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getPassword
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\Fixtures\ValueObjects;
3
4use Apie\Core\ValueObjects\DatabaseText;
5use Apie\Core\ValueObjects\SnowflakeIdentifier;
6
7class SnowflakeExample extends SnowflakeIdentifier
8{
9    protected static function getSeparator(): string
10    {
11        return '|';
12    }
13
14    public function __construct(private ?DatabaseText $field, private Password $password)
15    {
16        $this->toNative();
17    }
18
19    public function getField(): ?DatabaseText
20    {
21        return $this->field;
22    }
23
24    public function getPassword(): Password
25    {
26        return $this->password;
27    }
28}