Skip to content

Commit

Permalink
Merged Pull Request '#30 types->main : Add type declarations'
Browse files Browse the repository at this point in the history
Add type declarations
  • Loading branch information
Automation51D authored Jan 8, 2024
2 parents d81a639 + 920f6ea commit 53e552d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/TestFlowElement.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?php

use fiftyone\pipeline\core\FlowData;
use fiftyone\pipeline\core\FlowElement;
use fiftyone\pipeline\core\AspectPropertyValue;
use fiftyone\pipeline\core\ElementDataDictionary;
use fiftyone\pipeline\core\BasicListEvidenceKeyFilter;

class TestFlowElement extends FlowElement
{
public $dataKey;
public $properties;
public string $dataKey;
public array $properties;

public function __construct()
{
Expand All @@ -34,7 +35,7 @@ public function __construct()
);
}

public function processInternal($flowData)
public function processInternal(FlowData $flowData): void
{

$contents = [];
Expand All @@ -50,12 +51,12 @@ public function processInternal($flowData)
$flowData->setElementData($data);
}

public function getEvidenceKeyFilter()
public function getEvidenceKeyFilter(): BasicListEvidenceKeyFilter
{
return new BasicListEvidenceKeyFilter(["header.user-agent"]);
}

public function filterEvidenceKey($key)
public function filterEvidenceKey($key): bool
{
return true;
}
Expand Down

0 comments on commit 53e552d

Please sign in to comment.