File indexing completed on 2025-01-19 05:21:21

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Pdf
0017  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0018  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0019  * @version    $Id$
0020  */
0021 
0022 
0023 /** Zend_Pdf_Element */
0024 // require_once 'Zend/Pdf/Element.php';
0025 
0026 
0027 /**
0028  * PDF file 'null' element implementation
0029  *
0030  * @category   Zend
0031  * @package    Zend_Pdf
0032  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0033  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0034  */
0035 class Zend_Pdf_Element_Null extends Zend_Pdf_Element
0036 {
0037     /**
0038      * Object value. Always null.
0039      *
0040      * @var mixed
0041      */
0042     public $value;
0043 
0044 
0045     /**
0046      * Object constructor
0047      */
0048     public function __construct()
0049     {
0050         $this->value = null;
0051     }
0052 
0053 
0054     /**
0055      * Return type of the element.
0056      *
0057      * @return integer
0058      */
0059     public function getType()
0060     {
0061         return Zend_Pdf_Element::TYPE_NULL;
0062     }
0063 
0064 
0065     /**
0066      * Return object as string
0067      *
0068      * @param Zend_Pdf_Factory $factory
0069      * @return string
0070      */
0071     public function toString($factory = null)
0072     {
0073         return 'null';
0074     }
0075 }