File indexing completed on 2025-01-19 05:21:27
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_Search_Lucene 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 * Abstract Finite State Machine 0025 * 0026 * 0027 * @category Zend 0028 * @package Zend_Search_Lucene 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_Search_Lucene_FSMAction 0033 { 0034 /** 0035 * Object reference 0036 * 0037 * @var object 0038 */ 0039 private $_object; 0040 0041 /** 0042 * Method name 0043 * 0044 * @var string 0045 */ 0046 private $_method; 0047 0048 /** 0049 * Object constructor 0050 * 0051 * @param object $object 0052 * @param string $method 0053 */ 0054 public function __construct($object, $method) 0055 { 0056 $this->_object = $object; 0057 $this->_method = $method; 0058 } 0059 0060 public function doAction() 0061 { 0062 $methodName = $this->_method; 0063 $this->_object->$methodName(); 0064 } 0065 } 0066