See Release Notes
Long Term Support Release
1 <?php 2 /** 3 * Copyright 2012-2017 Horde LLC (http://www.horde.org/) 4 * 5 * See the enclosed file LICENSE for license information (LGPL). If you 6 * did not receive this file, see http://www.horde.org/licenses/lgpl21. 7 * 8 * @category Horde 9 * @copyright 2012-2017 Horde LLC 10 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 11 * @package Imap_Client 12 */ 13 14 /** 15 * Object representation of an IMAP number (RFC 3501 [4.2]). 16 * 17 * @author Michael Slusarz <slusarz@horde.org> 18 * @category Horde 19 * @copyright 2012-2017 Horde LLC 20 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 21 * @package Imap_Client 22 */ 23 class Horde_Imap_Client_Data_Format_Number extends Horde_Imap_Client_Data_Format 24 { 25 /** 26 */ 27 public function __toString() 28 { 29 return strval(intval($this->_data)); 30 } 31 32 /** 33 */ 34 public function verify() 35 { 36 if (!is_numeric($this->_data)) { 37 throw new Horde_Imap_Client_Data_Format_Exception('Illegal character in IMAP number.'); 38 } 39 } 40 41 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body