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 / File / PhpClassFile.php
blob309d63e96f2f0af545b6aeeed6f4a5becd9d6ae8
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\File;
12 use SplFileInfo;
14 /**
15 * Locate files containing PHP classes, interfaces, abstracts or traits
17 class PhpClassFile extends SplFileInfo
19 /**
20 * @var array
22 protected $classes = array();
24 /**
25 * @var array
27 protected $namespaces = array();
29 /**
30 * Get classes
32 * @return array
34 public function getClasses()
36 return $this->classes;
39 /**
40 * Get namespaces
42 * @return array
44 public function getNamespaces()
46 return $this->namespaces;
49 /**
50 * Add class
52 * @param string $class
53 * @return self
55 public function addClass($class)
57 $this->classes[] = $class;
58 return $this;
61 /**
62 * Add namespace
64 * @param string $namespace
65 * @return self
67 public function addNamespace($namespace)
69 if (in_array($namespace, $this->namespaces)) {
70 return $this;
72 $this->namespaces[] = $namespace;
73 return $this;