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 /**
0024  * PDF reference object context
0025  * Reference context is defined by PDF parser and PDF Refernce table
0026  *
0027  * @category   Zend
0028  * @package    Zend_Pdf
0029  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0030  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0031  */
0032 class Zend_Pdf_Element_Reference_Context
0033 {
0034     /**
0035      * PDF parser object.
0036      *
0037      * @var Zend_Pdf_StringParser
0038      */
0039     private $_stringParser;
0040 
0041     /**
0042      * Reference table
0043      *
0044      * @var Zend_Pdf_Element_Reference_Table
0045      */
0046     private $_refTable;
0047 
0048     /**
0049      * Object constructor
0050      *
0051      * @param Zend_Pdf_StringParser $parser
0052      * @param Zend_Pdf_Element_Reference_Table $refTable
0053      */
0054     public function __construct(Zend_Pdf_StringParser $parser,
0055                                 Zend_Pdf_Element_Reference_Table $refTable)
0056     {
0057         $this->_stringParser = $parser;
0058         $this->_refTable     = $refTable;
0059     }
0060 
0061 
0062     /**
0063      * Context parser
0064      *
0065      * @return Zend_Pdf_StringParser
0066      */
0067     public function getParser()
0068     {
0069         return $this->_stringParser;
0070     }
0071 
0072 
0073     /**
0074      * Context reference table
0075      *
0076      * @return Zend_Pdf_Element_Reference_Table
0077      */
0078     public function getRefTable()
0079     {
0080         return $this->_refTable;
0081     }
0082 }
0083