ShowTrait::getReleaseDate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
/**
3
 * This file is part of the Tmdb package.
4
 *
5
 * (c) Vincent Faliès <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @author Vincent Faliès <[email protected]>
11
 * @copyright Copyright (c) 2017
12
 */
13
14
15
namespace VfacTmdb\Traits\Results;
16
17
/**
18
 * Trait with methods for Show (Movie & TVShow)
19
 * @package Tmdb
20
 * @author Vincent Faliès <[email protected]>
21
 * @copyright Copyright (c) 2017
22
 */
23
trait ShowTrait
24
{
25
    /**
26
     * Id
27
     * @var int
28
     */
29
    protected $id;
30
    /**
31
     * Overview
32
     * @var string
33
     */
34
    protected $overview;
35
    /**
36
     * Release date
37
     * @var string
38
     */
39
    protected $release_date;
40
    /**
41
     * Original title
42
     * @var string
43
     */
44
    protected $original_title;
45
    /**
46
     * Title
47
     * @var string
48
     */
49
    protected $title;
50
51
    /**
52
     * Get show ID
53
     * @return int
54
     */
55 9
    public function getId() : int
56
    {
57 9
        return (int) $this->id;
58
    }
59
60
    /**
61
     * Get show overview
62
     * @return string
63
     */
64 6
    public function getOverview() : string
65
    {
66 6
        return $this->overview;
67
    }
68
69
    /**
70
     * Get show first air date
71
     * @return string
72
     */
73 6
    public function getReleaseDate() : string
74
    {
75 6
        return $this->release_date;
76
    }
77
78
    /**
79
     * Get show original name
80
     * @return string
81
     */
82 6
    public function getOriginalTitle() : string
83
    {
84 6
        return $this->original_title;
85
    }
86
87
    /**
88
     * Get show name
89
     * @return string
90
     */
91 15
    public function getTitle() : string
92
    {
93 15
        return $this->title;
94
    }
95
}
96