public function setScan($scan)
    {
        if (! (is_int($scan) || is_float($scan))) {
            throw new \InvalidArgumentException(
                'Argument 1 must be of type int or float. Value is of type ' . gettype($scan));
        }

        $this->scan = $scan;
    }