Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php declare(strict_types = 1);
2
/*
3
 * This file is part of PharIo\Version.
4
 *
5
 * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace PharIo\Version;
11
 
12
class BuildMetaData {
13
 
14
    /** @var string */
15
    private $value;
16
 
17
    public function __construct(string $value) {
18
        $this->value = $value;
19
    }
20
 
21
    public function asString(): string {
22
        return $this->value;
23
    }
24
 
25
    public function equals(BuildMetaData $other): bool {
26
        return $this->asString() === $other->asString();
27
    }
28
}