Passed
Push — master ( e9a477...8986c1 )
by Richard
03:58 queued 12s
created

StoryblokUnpublished::__construct()   A

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 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Riclep\Storyblok\Events;
4
5
use Illuminate\Foundation\Events\Dispatchable;
6
7
class StoryblokUnpublished implements PublishingEvent
8
{
9
	use Dispatchable;
10
11
	public $webhookPayload;
12
13
	/**
14
	 * Receives the webhook JSON, see:
15
	 * https://www.storyblok.com/docs/guide/in-depth/webhooks#available-webhooks
16
	 *
17
	 * @param $webhookPayload
18
	 */
19
	public function __construct($webhookPayload)
20
	{
21
		$this->webhookPayload = $webhookPayload;
22
	}
23
}