Passed
Pull Request — master (#4)
by Morten Poul
12:59
created

WebhookReceived::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Signifly\Shopify\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
use Signifly\Shopify\Webhooks\Webhook;
7
8
class WebhookReceived
9
{
10
    use SerializesModels;
0 ignored issues
show
introduced by
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by Signifly\Shopify\Events\WebhookReceived: $id, $relations, $class, $connection, $keyBy
Loading history...
11
12
    public $webhook;
13
14
    /**
15
     * Create a new event instance.
16
     *
17
     * @param Webhook $webhook
18
     * @return void
19
     */
20
    public function __construct(Webhook $webhook)
21
    {
22
        $this->webhook = $webhook;
23
    }
24
}
25