Ruling::getPublishedAt()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Viktoras\Scryfall\Entities;
4
5
use Viktoras\Scryfall\Enums;
6
7
class Ruling extends AbstractObject
8
{
9
    /**
10
     * @var string
11
     */
12
    private $oracleId;
13
14
    /**
15
     * @var string
16
     */
17
    private $source;
18
19
    /**
20
     * @var string
21
     */
22
    private $publishedAt;
23
24
    /**
25
     * @var string
26
     */
27
    private $comment;
28
29
    protected function acceptsObject(): string
30
    {
31
        return Enums\Objects::RULING;
32
    }
33
34
    public function getOracleId(): string
35
    {
36
        return $this->oracleId;
37
    }
38
39
    public function setOracleId(string $oracleId): void
40
    {
41
        $this->oracleId = $oracleId;
42
    }
43
44
    public function getSource(): string
45
    {
46
        return $this->source;
47
    }
48
49
    public function setSource(string $source): void
50
    {
51
        $this->source = $source;
52
    }
53
54
    public function getPublishedAt(): string
55
    {
56
        return $this->publishedAt;
57
    }
58
59
    public function setPublishedAt(string $publishedAt): void
60
    {
61
        $this->publishedAt = $publishedAt;
62
    }
63
64
    public function getComment(): string
65
    {
66
        return $this->comment;
67
    }
68
69
    public function setComment(string $comment): void
70
    {
71
        $this->comment = $comment;
72
    }
73
}
74