public function getBitPositionInDatabox(\databox $databox) { foreach ($databox->getStatusStructure() as $bit => $status) { $candidate_name = self::normalizeName($status['labelon']); if ($candidate_name === $this->name) { return (int) $status['bit']; } } }
public function getStatusStructure() { return $this->databox->getStatusStructure(); }