public function setMicrotimeAsFloat($timestamp)
    {
        if (!is_numeric($timestamp)) {
            throw new \InvalidArgumentException("Timestamp should be numeric");
        }
        $converter = new MicrotimeConverter();
        $this->timestamp = $converter->convertFloatToString($timestamp);
    }
public function setMicrotimeAsFloat($timestamp)
    {
        if (!is_numeric($timestamp)) {
            throw new \InvalidArgumentException("Timestamp should be numeric");
        }
        $converter = new MicrotimeConverter();
        $this->timestamp = $converter->convertFloatToString($timestamp);
    }
public function setMicrotimeAsFloat ( $ timestamp ) { if ( ! is_numeric ( $ timestamp ) ) { throw new \ InvalidArgumentException ( "Timestamp should be numeric" ) ; } $ converter = new MicrotimeConverter ( ) ; $ this -> timestamp = $ converter -> convertFloatToString ( $ timestamp ) ; }
Set the timestamp as float.

@param float $timestamp The timestamp as float.
Set the timestamp as float .