Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | <?php |
||
19 | class GoogleCloudPubSubDestination extends Destination |
||
20 | { |
||
21 | 1 | public function fieldDefinitions() |
|
22 | { |
||
23 | return [ |
||
24 | 1 | 'type' => [static::TYPE => 'string'], |
|
25 | 1 | 'projectId' => [static::TYPE => 'string'], |
|
26 | 1 | 'topic' => [static::TYPE => 'string'], |
|
27 | ]; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param string $projectId |
||
32 | * @param string $topic |
||
33 | * @param Context $context |
||
34 | * @return GoogleCloudPubSubDestination |
||
35 | */ |
||
36 | public static function ofProjectIdAndTopic($projectId, $topic, Context $context = null) |
||
39 | } |
||
40 | } |
||
41 |