Passed
Push — master ( 2428ce...06a092 )
by y
02:04
created

AbstractWebhook::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Helix\Asana\Webhook;
4
5
use Helix\Asana\Base\AbstractEntity;
6
use Helix\Asana\Base\AbstractEntity\CreateTrait;
7
use Helix\Asana\Base\AbstractEntity\DeleteTrait;
8
use Helix\Asana\Base\AbstractEntity\ImmutableInterface;
9
10
/**
11
 * A webhook.
12
 *
13
 * @see https://developers.asana.com/docs/asana-webhooks
14
 * @see https://developers.asana.com/docs/webhook
15
 *
16
 * @immutable Webhooks may only be deleted after creation.
17
 *
18
 * @method bool     isActive                ()
19
 * @method string   getCreatedAt            () RFC3339x
20
 * @method string   getLastFailureAt        () RFC3339x
21
 * @method string   getLastFailureContent   ()
22
 * @method string   getLastSuccessAt        () RFC3339x
23
 * @method string   getTarget               ()
24
 */
25
abstract class AbstractWebhook extends AbstractEntity implements ImmutableInterface {
26
27
    use CreateTrait;
28
    use DeleteTrait;
29
30
    // no need for $parent, new webhooks are posted here.
31
    const DIR = 'webhooks';
32
33
}