| 1 | <?php |
||
| 11 | class AbstractStep implements Step |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var float |
||
| 15 | */ |
||
| 16 | private $confidence; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $type; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | private $entities; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * AbstractStep constructor. |
||
| 30 | * @param string $type |
||
| 31 | * @param float $confidence |
||
| 32 | * @param array $entities |
||
| 33 | */ |
||
| 34 | 31 | public function __construct($type, $confidence, array $entities = []) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 4 | public function getType() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return float |
||
| 51 | */ |
||
| 52 | 4 | public function getConfidence() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | 6 | public function getEntities() |
|
| 64 | } |