Back to index

php5  5.3.10
gtVariationContainer.php
Go to the documentation of this file.
00001 <?php
00002 
00006 abstract class gtVariationContainer {
00007   
00008   protected $variationTests;
00009   
00010   protected $dataTypes = array (
00011                          'array',
00012                          'boolean',
00013                          'emptyUnsetUndefNull',
00014                          'float',
00015                          'int',
00016                          'object',
00017                          'string',
00018                          );
00019   
00020   
00021                      
00028    public static function getInstance ($optionalSections, $type = 'function') {
00029     
00030     if($type == 'function') {
00031       return new gtVariationContainerFunction($optionalSections);
00032     }
00033     if($type =='method') {
00034       return new gtVariationContainerMethod($optionalSections);
00035     }
00036     
00037   }
00038   
00039   
00040   public function constructAll() {
00041   }
00042   
00043   
00049   public function getVariationTests() {
00050     return $this->variationTests;
00051   }
00052   
00053 }
00054 ?>