Amfphp_Core_Amf_Deserializer::readAmf3Date PHP Method

readAmf3Date() protected method

read amf 3 date
protected readAmf3Date ( ) : boolean | Amfphp_Core_Amf_Types_Date
return boolean | Amfphp_Core_Amf_Types_Date
    protected function readAmf3Date()
    {
        $firstInt = $this->readAmf3Int();
        if (($firstInt & 0x1) == 0) {
            $firstInt = $firstInt >> 1;
            if ($firstInt >= count($this->storedObjects)) {
                throw new Amfphp_Core_Exception('Undefined date reference: ' . $firstInt);
                return false;
            }
            return $this->storedObjects[$firstInt];
        }
        $ms = $this->readDouble();
        $date = new Amfphp_Core_Amf_Types_Date($ms);
        $this->storedObjects[] =& $date;
        return $date;
    }