methodName = strtolower($methodName); $this->value = $value; $this->label = $label; } /** * @param string|int $input * * @return bool */ public function equals($input): bool { if ($this->value === $input) { return true; } if (is_string($input) && $this->methodName === strtolower($input)) { return true; } return false; } }