protected function __toSend($asDomElement = false)
    {
        $this->setValue([
            $this->getCreated(),
            $this->getExpires(),
        ]);

        return parent::__toSend($asDomElement);
    }
protected function __toSend($asDomElement = false)
    {
        $this->setValue([
            $this->getCreated(),
            $this->getExpires(),
        ]);

        return parent::__toSend($asDomElement);
    }
protected function __toSend ( $ asDomElement = false ) { $ this -> setValue ( [ $ this -> getCreated ( ) , $ this -> getExpires ( ) , ] ) ; return parent :: __toSend ( $ asDomElement ) ; }
Overrides method in order to add created and expires values if they are set.

@param bool $asDomElement returns elements as a DOMElement or as a string

@return string
Overrides method in order to add created and expires values if they are set .