| 1 | <?php |
||
| 13 | class Classifier |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Classifier ID |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $id; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Classifier Name |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $name; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Classification score against image |
||
| 29 | * @var float |
||
| 30 | */ |
||
| 31 | private $score; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Classifier Owner/Creator |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | private $owner; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Classifier Creation Date |
||
| 41 | * |
||
| 42 | * @var \DateTime |
||
| 43 | */ |
||
| 44 | private $created; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Classifier constructor. |
||
| 48 | * |
||
| 49 | * @param string $id |
||
| 50 | * @param string $name |
||
| 51 | * @param float|null $score |
||
| 52 | * @param string|null $owner |
||
| 53 | * @param DateTime|null $created |
||
| 54 | */ |
||
| 55 | 21 | public function __construct($id, $name, $score = null, $owner = null, $created = null) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Get Classifier ID. |
||
| 66 | * |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | 9 | public function getId() |
|
| 73 | |||
| 74 | /** |
||
| 75 | * Get Classifier name. |
||
| 76 | * |
||
| 77 | * @return string |
||
| 78 | */ |
||
| 79 | 8 | public function getName() |
|
| 83 | |||
| 84 | /** |
||
| 85 | * Get classification score. |
||
| 86 | * |
||
| 87 | * @return float|null |
||
| 88 | */ |
||
| 89 | 3 | public function getScore() |
|
| 93 | |||
| 94 | /** |
||
| 95 | * Get Owner |
||
| 96 | * |
||
| 97 | * @return null|string |
||
| 98 | */ |
||
| 99 | 6 | public function getOwner() |
|
| 103 | |||
| 104 | /** |
||
| 105 | * Get Creation Date |
||
| 106 | * |
||
| 107 | * @return DateTime|null |
||
| 108 | */ |
||
| 109 | 6 | public function getCreated() |
|
| 113 | } |
||
| 114 |