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
10 namespace Zend\Cache\Pattern
;
13 use Zend\Cache\Exception
;
15 abstract class AbstractPattern
implements PatternInterface
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;
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
;