Passed
Push — master ( 3e245e...ef140d )
by Phan
07:34
created

AlbumInformationFetched::getAlbum()   A

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 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace App\Events;
4
5
use App\Models\Album;
6
use Illuminate\Queue\SerializesModels;
7
8
class AlbumInformationFetched extends Event
9
{
10
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\AlbumInformationFetched: $id, $relations, $class, $connection, $keyBy
Loading history...
11
12
    private $album;
13
    private $information;
14
15 2
    public function __construct(Album $album, array $information)
16
    {
17 2
        $this->album = $album;
18 2
        $this->information = $information;
19 2
    }
20
21 1
    public function getAlbum(): Album
22
    {
23 1
        return $this->album;
24
    }
25
26
    /**
27
     * @return mixed[]
28
     */
29 1
    public function getInformation(): array
30
    {
31 1
        return $this->information;
32
    }
33
}
34