Passed
Pull Request — master (#31)
by Anatoly
39:30
created
src/Uri/Component/Host.php 2 patches
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -32,55 +32,55 @@
 block discarded – undo
32 32
 final class Host implements ComponentInterface
33 33
 {
34 34
 
35
-    /**
36
-     * Regular expression to normalize the component value
37
-     *
38
-     * @var string
39
-     */
40
-    private const NORMALIZE_REGEX = '/(?:(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-\._~\!\$&\'\(\)\*\+,;\=]+)|(.?))/u';
35
+	/**
36
+	 * Regular expression to normalize the component value
37
+	 *
38
+	 * @var string
39
+	 */
40
+	private const NORMALIZE_REGEX = '/(?:(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-\._~\!\$&\'\(\)\*\+,;\=]+)|(.?))/u';
41 41
 
42
-    /**
43
-     * The component value
44
-     *
45
-     * @var string
46
-     */
47
-    private string $value = '';
42
+	/**
43
+	 * The component value
44
+	 *
45
+	 * @var string
46
+	 */
47
+	private string $value = '';
48 48
 
49
-    /**
50
-     * Constructor of the class
51
-     *
52
-     * @param mixed $value
53
-     *
54
-     * @throws InvalidUriComponentException
55
-     *         If the component isn't valid.
56
-     */
57
-    public function __construct($value)
58
-    {
59
-        if ($value === '') {
60
-            return;
61
-        }
49
+	/**
50
+	 * Constructor of the class
51
+	 *
52
+	 * @param mixed $value
53
+	 *
54
+	 * @throws InvalidUriComponentException
55
+	 *         If the component isn't valid.
56
+	 */
57
+	public function __construct($value)
58
+	{
59
+		if ($value === '') {
60
+			return;
61
+		}
62 62
 
63
-        if (!is_string($value)) {
64
-            throw new InvalidUriComponentException('URI component "host" must be a string');
65
-        }
63
+		if (!is_string($value)) {
64
+			throw new InvalidUriComponentException('URI component "host" must be a string');
65
+		}
66 66
 
67
-        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
68
-            /** @var array{0: string, 1?: string} $match */
67
+		$this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
68
+			/** @var array{0: string, 1?: string} $match */
69 69
 
70
-            return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
71
-        }, $value);
70
+			return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
71
+		}, $value);
72 72
 
73
-        // the component is case-insensitive...
74
-        $this->value = strtolower($this->value);
75
-    }
73
+		// the component is case-insensitive...
74
+		$this->value = strtolower($this->value);
75
+	}
76 76
 
77
-    /**
78
-     * {@inheritdoc}
79
-     *
80
-     * @return string
81
-     */
82
-    public function getValue(): string
83
-    {
84
-        return $this->value;
85
-    }
77
+	/**
78
+	 * {@inheritdoc}
79
+	 *
80
+	 * @return string
81
+	 */
82
+	public function getValue(): string
83
+	{
84
+		return $this->value;
85
+	}
86 86
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             throw new InvalidUriComponentException('URI component "host" must be a string');
65 65
         }
66 66
 
67
-        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
67
+        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function(array $match): string {
68 68
             /** @var array{0: string, 1?: string} $match */
69 69
 
70 70
             return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
Please login to merge, or discard this patch.
src/Uri/Component/Path.php 2 patches
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -31,52 +31,52 @@
 block discarded – undo
31 31
 final class Path implements ComponentInterface
32 32
 {
33 33
 
34
-    /**
35
-     * Regular expression to normalize the component value
36
-     *
37
-     * @var string
38
-     */
39
-    private const NORMALIZE_REGEX = '/(?:(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-\._~\!\$&\'\(\)\*\+,;\=\:@\/]+)|(.?))/u';
34
+	/**
35
+	 * Regular expression to normalize the component value
36
+	 *
37
+	 * @var string
38
+	 */
39
+	private const NORMALIZE_REGEX = '/(?:(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-\._~\!\$&\'\(\)\*\+,;\=\:@\/]+)|(.?))/u';
40 40
 
41
-    /**
42
-     * The component value
43
-     *
44
-     * @var string
45
-     */
46
-    private string $value = '';
41
+	/**
42
+	 * The component value
43
+	 *
44
+	 * @var string
45
+	 */
46
+	private string $value = '';
47 47
 
48
-    /**
49
-     * Constructor of the class
50
-     *
51
-     * @param mixed $value
52
-     *
53
-     * @throws InvalidUriComponentException
54
-     *         If the component isn't valid.
55
-     */
56
-    public function __construct($value)
57
-    {
58
-        if ($value === '') {
59
-            return;
60
-        }
48
+	/**
49
+	 * Constructor of the class
50
+	 *
51
+	 * @param mixed $value
52
+	 *
53
+	 * @throws InvalidUriComponentException
54
+	 *         If the component isn't valid.
55
+	 */
56
+	public function __construct($value)
57
+	{
58
+		if ($value === '') {
59
+			return;
60
+		}
61 61
 
62
-        if (!is_string($value)) {
63
-            throw new InvalidUriComponentException('URI component "path" must be a string');
64
-        }
62
+		if (!is_string($value)) {
63
+			throw new InvalidUriComponentException('URI component "path" must be a string');
64
+		}
65 65
 
66
-        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
67
-            /** @var array{0: string, 1?: string} $match */
66
+		$this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
67
+			/** @var array{0: string, 1?: string} $match */
68 68
 
69
-            return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
70
-        }, $value);
71
-    }
69
+			return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
70
+		}, $value);
71
+	}
72 72
 
73
-    /**
74
-     * {@inheritdoc}
75
-     *
76
-     * @return string
77
-     */
78
-    public function getValue(): string
79
-    {
80
-        return $this->value;
81
-    }
73
+	/**
74
+	 * {@inheritdoc}
75
+	 *
76
+	 * @return string
77
+	 */
78
+	public function getValue(): string
79
+	{
80
+		return $this->value;
81
+	}
82 82
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             throw new InvalidUriComponentException('URI component "path" must be a string');
64 64
         }
65 65
 
66
-        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
66
+        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function(array $match): string {
67 67
             /** @var array{0: string, 1?: string} $match */
68 68
 
69 69
             return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
Please login to merge, or discard this patch.
src/Uri/Component/Query.php 2 patches
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -31,52 +31,52 @@
 block discarded – undo
31 31
 final class Query implements ComponentInterface
32 32
 {
33 33
 
34
-    /**
35
-     * Regular expression to normalize the component value
36
-     *
37
-     * @var string
38
-     */
39
-    private const NORMALIZE_REGEX = '/(?:(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-\._~\!\$&\'\(\)\*\+,;\=\:@\/\?]+)|(.?))/u';
34
+	/**
35
+	 * Regular expression to normalize the component value
36
+	 *
37
+	 * @var string
38
+	 */
39
+	private const NORMALIZE_REGEX = '/(?:(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-\._~\!\$&\'\(\)\*\+,;\=\:@\/\?]+)|(.?))/u';
40 40
 
41
-    /**
42
-     * The component value
43
-     *
44
-     * @var string
45
-     */
46
-    private string $value = '';
41
+	/**
42
+	 * The component value
43
+	 *
44
+	 * @var string
45
+	 */
46
+	private string $value = '';
47 47
 
48
-    /**
49
-     * Constructor of the class
50
-     *
51
-     * @param mixed $value
52
-     *
53
-     * @throws InvalidUriComponentException
54
-     *         If the component isn't valid.
55
-     */
56
-    public function __construct($value)
57
-    {
58
-        if ($value === '') {
59
-            return;
60
-        }
48
+	/**
49
+	 * Constructor of the class
50
+	 *
51
+	 * @param mixed $value
52
+	 *
53
+	 * @throws InvalidUriComponentException
54
+	 *         If the component isn't valid.
55
+	 */
56
+	public function __construct($value)
57
+	{
58
+		if ($value === '') {
59
+			return;
60
+		}
61 61
 
62
-        if (!is_string($value)) {
63
-            throw new InvalidUriComponentException('URI component "query" must be a string');
64
-        }
62
+		if (!is_string($value)) {
63
+			throw new InvalidUriComponentException('URI component "query" must be a string');
64
+		}
65 65
 
66
-        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
67
-            /** @var array{0: string, 1?: string} $match */
66
+		$this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
67
+			/** @var array{0: string, 1?: string} $match */
68 68
 
69
-            return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
70
-        }, $value);
71
-    }
69
+			return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
70
+		}, $value);
71
+	}
72 72
 
73
-    /**
74
-     * {@inheritdoc}
75
-     *
76
-     * @return string
77
-     */
78
-    public function getValue(): string
79
-    {
80
-        return $this->value;
81
-    }
73
+	/**
74
+	 * {@inheritdoc}
75
+	 *
76
+	 * @return string
77
+	 */
78
+	public function getValue(): string
79
+	{
80
+		return $this->value;
81
+	}
82 82
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             throw new InvalidUriComponentException('URI component "query" must be a string');
64 64
         }
65 65
 
66
-        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
66
+        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function(array $match): string {
67 67
             /** @var array{0: string, 1?: string} $match */
68 68
 
69 69
             return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
Please login to merge, or discard this patch.
src/Uri/Component/Port.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -29,48 +29,48 @@
 block discarded – undo
29 29
 final class Port implements ComponentInterface
30 30
 {
31 31
 
32
-    /**
33
-     * The component value
34
-     *
35
-     * @var int|null
36
-     */
37
-    private ?int $value = null;
32
+	/**
33
+	 * The component value
34
+	 *
35
+	 * @var int|null
36
+	 */
37
+	private ?int $value = null;
38 38
 
39
-    /**
40
-     * Constructor of the class
41
-     *
42
-     * @param mixed $value
43
-     *
44
-     * @throws InvalidUriComponentException
45
-     *         If the component isn't valid.
46
-     */
47
-    public function __construct($value)
48
-    {
49
-        $min = 1;
50
-        $max = (2 ** 16) - 1;
39
+	/**
40
+	 * Constructor of the class
41
+	 *
42
+	 * @param mixed $value
43
+	 *
44
+	 * @throws InvalidUriComponentException
45
+	 *         If the component isn't valid.
46
+	 */
47
+	public function __construct($value)
48
+	{
49
+		$min = 1;
50
+		$max = (2 ** 16) - 1;
51 51
 
52
-        if ($value === null) {
53
-            return;
54
-        }
52
+		if ($value === null) {
53
+			return;
54
+		}
55 55
 
56
-        if (!is_int($value)) {
57
-            throw new InvalidUriComponentException('URI component "port" must be an integer');
58
-        }
56
+		if (!is_int($value)) {
57
+			throw new InvalidUriComponentException('URI component "port" must be an integer');
58
+		}
59 59
 
60
-        if (!($value >= $min && $value <= $max)) {
61
-            throw new InvalidUriComponentException('Invalid URI component "port"');
62
-        }
60
+		if (!($value >= $min && $value <= $max)) {
61
+			throw new InvalidUriComponentException('Invalid URI component "port"');
62
+		}
63 63
 
64
-        $this->value = $value;
65
-    }
64
+		$this->value = $value;
65
+	}
66 66
 
67
-    /**
68
-     * {@inheritdoc}
69
-     *
70
-     * @return int|null
71
-     */
72
-    public function getValue(): ?int
73
-    {
74
-        return $this->value;
75
-    }
67
+	/**
68
+	 * {@inheritdoc}
69
+	 *
70
+	 * @return int|null
71
+	 */
72
+	public function getValue(): ?int
73
+	{
74
+		return $this->value;
75
+	}
76 76
 }
Please login to merge, or discard this patch.
src/Uri/Component/User.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             throw new InvalidUriComponentException('URI component "user" must be a string');
64 64
         }
65 65
 
66
-        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
66
+        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function(array $match): string {
67 67
             /** @var array{0: string, 1?: string} $match */
68 68
 
69 69
             return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
Please login to merge, or discard this patch.
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -31,70 +31,70 @@
 block discarded – undo
31 31
 final class User implements ComponentInterface
32 32
 {
33 33
 
34
-    /**
35
-     * Regular expression to normalize the component value
36
-     *
37
-     * @var string
38
-     */
39
-    private const NORMALIZE_REGEX = '/(?:(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-\._~\!\$&\'\(\)\*\+,;\=]+)|(.?))/u';
34
+	/**
35
+	 * Regular expression to normalize the component value
36
+	 *
37
+	 * @var string
38
+	 */
39
+	private const NORMALIZE_REGEX = '/(?:(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-\._~\!\$&\'\(\)\*\+,;\=]+)|(.?))/u';
40 40
 
41
-    /**
42
-     * The component value
43
-     *
44
-     * @var string
45
-     */
46
-    private string $value = '';
41
+	/**
42
+	 * The component value
43
+	 *
44
+	 * @var string
45
+	 */
46
+	private string $value = '';
47 47
 
48
-    /**
49
-     * Constructor of the class
50
-     *
51
-     * @param mixed $value
52
-     *
53
-     * @throws InvalidUriComponentException
54
-     *         If the component isn't valid.
55
-     */
56
-    public function __construct($value)
57
-    {
58
-        if ($value === '') {
59
-            return;
60
-        }
48
+	/**
49
+	 * Constructor of the class
50
+	 *
51
+	 * @param mixed $value
52
+	 *
53
+	 * @throws InvalidUriComponentException
54
+	 *         If the component isn't valid.
55
+	 */
56
+	public function __construct($value)
57
+	{
58
+		if ($value === '') {
59
+			return;
60
+		}
61 61
 
62
-        if (!is_string($value)) {
63
-            throw new InvalidUriComponentException('URI component "user" must be a string');
64
-        }
62
+		if (!is_string($value)) {
63
+			throw new InvalidUriComponentException('URI component "user" must be a string');
64
+		}
65 65
 
66
-        $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
67
-            /** @var array{0: string, 1?: string} $match */
66
+		$this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string {
67
+			/** @var array{0: string, 1?: string} $match */
68 68
 
69
-            return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
70
-        }, $value);
71
-    }
69
+			return isset($match[1]) ? rawurlencode($match[1]) : $match[0];
70
+		}, $value);
71
+	}
72 72
 
73
-    /**
74
-     * Creates a user component
75
-     *
76
-     * @param mixed $user
77
-     *
78
-     * @return User
79
-     *
80
-     * @throws InvalidUriComponentException
81
-     */
82
-    public static function create($user): User
83
-    {
84
-        if ($user instanceof User) {
85
-            return $user;
86
-        }
73
+	/**
74
+	 * Creates a user component
75
+	 *
76
+	 * @param mixed $user
77
+	 *
78
+	 * @return User
79
+	 *
80
+	 * @throws InvalidUriComponentException
81
+	 */
82
+	public static function create($user): User
83
+	{
84
+		if ($user instanceof User) {
85
+			return $user;
86
+		}
87 87
 
88
-        return new User($user);
89
-    }
88
+		return new User($user);
89
+	}
90 90
 
91
-    /**
92
-     * {@inheritdoc}
93
-     *
94
-     * @return string
95
-     */
96
-    public function getValue(): string
97
-    {
98
-        return $this->value;
99
-    }
91
+	/**
92
+	 * {@inheritdoc}
93
+	 *
94
+	 * @return string
95
+	 */
96
+	public function getValue(): string
97
+	{
98
+		return $this->value;
99
+	}
100 100
 }
Please login to merge, or discard this patch.
src/ResponseFactory.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
 class ResponseFactory implements ResponseFactoryInterface
26 26
 {
27 27
 
28
-    /**
29
-     * {@inheritdoc}
30
-     */
31
-    public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface
32
-    {
33
-        return new Response($code, $reasonPhrase);
34
-    }
28
+	/**
29
+	 * {@inheritdoc}
30
+	 */
31
+	public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface
32
+	{
33
+		return new Response($code, $reasonPhrase);
34
+	}
35 35
 }
Please login to merge, or discard this patch.
src/Header/RetryAfterHeader.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -24,34 +24,34 @@
 block discarded – undo
24 24
 class RetryAfterHeader extends Header
25 25
 {
26 26
 
27
-    /**
28
-     * @var DateTimeInterface
29
-     */
30
-    private DateTimeInterface $timestamp;
31
-
32
-    /**
33
-     * Constructor of the class
34
-     *
35
-     * @param DateTimeInterface $timestamp
36
-     */
37
-    public function __construct(DateTimeInterface $timestamp)
38
-    {
39
-        $this->timestamp = $timestamp;
40
-    }
41
-
42
-    /**
43
-     * {@inheritdoc}
44
-     */
45
-    public function getFieldName(): string
46
-    {
47
-        return 'Retry-After';
48
-    }
49
-
50
-    /**
51
-     * {@inheritdoc}
52
-     */
53
-    public function getFieldValue(): string
54
-    {
55
-        return $this->formatDateTime($this->timestamp);
56
-    }
27
+	/**
28
+	 * @var DateTimeInterface
29
+	 */
30
+	private DateTimeInterface $timestamp;
31
+
32
+	/**
33
+	 * Constructor of the class
34
+	 *
35
+	 * @param DateTimeInterface $timestamp
36
+	 */
37
+	public function __construct(DateTimeInterface $timestamp)
38
+	{
39
+		$this->timestamp = $timestamp;
40
+	}
41
+
42
+	/**
43
+	 * {@inheritdoc}
44
+	 */
45
+	public function getFieldName(): string
46
+	{
47
+		return 'Retry-After';
48
+	}
49
+
50
+	/**
51
+	 * {@inheritdoc}
52
+	 */
53
+	public function getFieldValue(): string
54
+	{
55
+		return $this->formatDateTime($this->timestamp);
56
+	}
57 57
 }
Please login to merge, or discard this patch.
src/Header/LastModifiedHeader.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -24,34 +24,34 @@
 block discarded – undo
24 24
 class LastModifiedHeader extends Header
25 25
 {
26 26
 
27
-    /**
28
-     * @var DateTimeInterface
29
-     */
30
-    private DateTimeInterface $timestamp;
31
-
32
-    /**
33
-     * Constructor of the class
34
-     *
35
-     * @param DateTimeInterface $timestamp
36
-     */
37
-    public function __construct(DateTimeInterface $timestamp)
38
-    {
39
-        $this->timestamp = $timestamp;
40
-    }
41
-
42
-    /**
43
-     * {@inheritdoc}
44
-     */
45
-    public function getFieldName(): string
46
-    {
47
-        return 'Last-Modified';
48
-    }
49
-
50
-    /**
51
-     * {@inheritdoc}
52
-     */
53
-    public function getFieldValue(): string
54
-    {
55
-        return $this->formatDateTime($this->timestamp);
56
-    }
27
+	/**
28
+	 * @var DateTimeInterface
29
+	 */
30
+	private DateTimeInterface $timestamp;
31
+
32
+	/**
33
+	 * Constructor of the class
34
+	 *
35
+	 * @param DateTimeInterface $timestamp
36
+	 */
37
+	public function __construct(DateTimeInterface $timestamp)
38
+	{
39
+		$this->timestamp = $timestamp;
40
+	}
41
+
42
+	/**
43
+	 * {@inheritdoc}
44
+	 */
45
+	public function getFieldName(): string
46
+	{
47
+		return 'Last-Modified';
48
+	}
49
+
50
+	/**
51
+	 * {@inheritdoc}
52
+	 */
53
+	public function getFieldValue(): string
54
+	{
55
+		return $this->formatDateTime($this->timestamp);
56
+	}
57 57
 }
Please login to merge, or discard this patch.
src/Header/ExpiresHeader.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -24,34 +24,34 @@
 block discarded – undo
24 24
 class ExpiresHeader extends Header
25 25
 {
26 26
 
27
-    /**
28
-     * @var DateTimeInterface
29
-     */
30
-    private DateTimeInterface $timestamp;
31
-
32
-    /**
33
-     * Constructor of the class
34
-     *
35
-     * @param DateTimeInterface $timestamp
36
-     */
37
-    public function __construct(DateTimeInterface $timestamp)
38
-    {
39
-        $this->timestamp = $timestamp;
40
-    }
41
-
42
-    /**
43
-     * {@inheritdoc}
44
-     */
45
-    public function getFieldName(): string
46
-    {
47
-        return 'Expires';
48
-    }
49
-
50
-    /**
51
-     * {@inheritdoc}
52
-     */
53
-    public function getFieldValue(): string
54
-    {
55
-        return $this->formatDateTime($this->timestamp);
56
-    }
27
+	/**
28
+	 * @var DateTimeInterface
29
+	 */
30
+	private DateTimeInterface $timestamp;
31
+
32
+	/**
33
+	 * Constructor of the class
34
+	 *
35
+	 * @param DateTimeInterface $timestamp
36
+	 */
37
+	public function __construct(DateTimeInterface $timestamp)
38
+	{
39
+		$this->timestamp = $timestamp;
40
+	}
41
+
42
+	/**
43
+	 * {@inheritdoc}
44
+	 */
45
+	public function getFieldName(): string
46
+	{
47
+		return 'Expires';
48
+	}
49
+
50
+	/**
51
+	 * {@inheritdoc}
52
+	 */
53
+	public function getFieldValue(): string
54
+	{
55
+		return $this->formatDateTime($this->timestamp);
56
+	}
57 57
 }
Please login to merge, or discard this patch.