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

StoryblokPublished   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Riclep\Storyblok\Events;
4
5
use Illuminate\Foundation\Events\Dispatchable;
6
7
class StoryblokPublished 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
}