Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Cache / Pattern / AbstractPattern.php
blobd987928a444ddb859c5c916dc43ddb6fdfab07a8
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Cache\Pattern;
12 use Traversable;
13 use Zend\Cache\Exception;
15 abstract class AbstractPattern implements PatternInterface
17 /**
18 * @var PatternOptions
20 protected $options;
22 /**
23 * Set pattern options
25 * @param array|Traversable|PatternOptions $options
26 * @return AbstractPattern
27 * @throws Exception\InvalidArgumentException
29 public function setOptions(PatternOptions $options)
31 if (!$options instanceof PatternOptions) {
32 $options = new PatternOptions($options);
35 $this->options = $options;
36 return $this;
39 /**
40 * Get all pattern options
42 * @return PatternOptions
44 public function getOptions()
46 if (null === $this->options) {
47 $this->setOptions(new PatternOptions());
49 return $this->options;