Completed
Push — master ( 77c628...ce2be0 )
by Olivier
03:34
created

ProductUpdatedEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 14
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getProduct() 0 4 1
A getPreviousAttributes() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This software may be modified and distributed under the terms
7
 * of the MIT license. See the LICENSE file for details.
8
 */
9
10
namespace Shapin\Stripe\Model\Event;
11
12
use Shapin\Stripe\Model\Product\Product;
13
14
final class ProductUpdatedEvent implements Event
15
{
16
    use EventTrait;
17
18
    public function getProduct(): Product
19
    {
20
        return $this->product;
21
    }
22
23
    public function getPreviousAttributes(): array
24
    {
25
        return $this->previousAttributes;
26
    }
27
}
28