src/PeekAndPoke/Component/Formal/Field/Atomic/Select/Option.php
public function equals($value)
    {
        if ($this === $value) {
            return true;
        }

        if ($this->realValue === null && $value !== null) {
            return false;
        }

        if ($this->realValue instanceof Equatable && $value instanceof Equatable) {
            return $this->realValue->isEqualTo($value);
        }

        /** @noinspection UnnecessaryCastingInspection */
        return is_scalar($value) && (string) $this->formValue === (string) $value;
    }
public function equals($value)
    {
        if ($this === $value) {
            return true;
        }

        if ($this->realValue === null && $value !== null) {
            return false;
        }

        if ($this->realValue instanceof Equatable && $value instanceof Equatable) {
            return $this->realValue->isEqualTo($value);
        }

        /** @noinspection UnnecessaryCastingInspection */
        return is_scalar($value) && (string) $this->formValue === (string) $value;
    }
public function equals ( $ value ) { if ( $ this === $ value ) { return true ; } if ( $ this -> realValue === null && $ value !== null ) { return false ; } if ( $ this -> realValue instanceof Equatable && $ value instanceof Equatable ) { return $ this -> realValue -> isEqualTo ( $ value ) ; } /** @noinspection UnnecessaryCastingInspection */ return is_scalar ( $ value ) && ( string ) $ this -> formValue === ( string ) $ value ; }
@param $value

@return bool
@param $value