web/lib/Zend/File/PhpClassFile.php
changeset 1230 68c69c656a2c
equal deleted inserted replaced
1229:5a6b6e770365 1230:68c69c656a2c
       
     1 <?php
       
     2 /**
       
     3  * Zend Framework
       
     4  *
       
     5  * LICENSE
       
     6  *
       
     7  * This source file is subject to the new BSD license that is bundled
       
     8  * with this package in the file LICENSE.txt.
       
     9  * It is also available through the world-wide-web at this URL:
       
    10  * http://framework.zend.com/license/new-bsd
       
    11  * If you did not receive a copy of the license and are unable to
       
    12  * obtain it through the world-wide-web, please send an email
       
    13  * to license@zend.com so we can send you a copy immediately.
       
    14  *
       
    15  * @category   Zend
       
    16  * @package    Zend_File
       
    17  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
       
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    19  */
       
    20 
       
    21 /**
       
    22  * Locate files containing PHP classes, interfaces, abstracts or traits
       
    23  *
       
    24  * @package    Zend_File
       
    25  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
       
    26  * @license    New BSD {@link http://framework.zend.com/license/new-bsd}
       
    27  */
       
    28 class Zend_File_PhpClassFile extends SplFileInfo
       
    29 {
       
    30     /**
       
    31      * @var array
       
    32      */
       
    33     protected $classes;
       
    34 
       
    35     /**
       
    36      * Get classes
       
    37      *
       
    38      * @return array
       
    39      */
       
    40     public function getClasses()
       
    41     {
       
    42         return $this->classes;
       
    43     }
       
    44 
       
    45     /**
       
    46      * Add class
       
    47      *
       
    48      * @param  string $class
       
    49      * @return Zend_File_PhpClassFile
       
    50      */
       
    51     public function addClass($class)
       
    52     {
       
    53         $this->classes[] = $class;
       
    54         return $this;
       
    55     }
       
    56 }