pastebin

Paste Search Dynamic
Recent pastes
Factory
  1. <?php
  2. require_once 'Zend/Uri/Http.php';
  3.  
  4. namespace LocationWeb;
  5.  
  6. interface Factory
  7. {
  8.     static function _factory();
  9. }
  10.  
  11. abstract class URI extends BaseURI implements Factory
  12. {
  13.     abstract function test();
  14.  
  15.     public static $st1 = 1;
  16.     const ME = "Yo";
  17.     var $list = null;
  18.     private $var;
  19.  
  20.     /**
  21.      * Returns a URI
  22.      *
  23.      * @return URI
  24.      */
  25.     static public function _factory($stats = array(), $uri = 'http')
  26.     {
  27.         echo __method__;
  28.         $uri = explode(':', $uri, 0b10);
  29.         $schemeSpecific = isset($uri[1]) ? $uri[1] : '';
  30.         $desc = 'Multi
  31. line description';
  32.  
  33.         // Security check
  34.         if (!ctype_alnum($scheme)) {
  35.             throw new Zend_Uri_Exception('Illegal scheme');
  36.         }
  37.  
  38.         $this->var = 0 - self::$st;
  39.         $this->list = list(array("1"=> 2, 2=>self::ME, 3 => LocationWebURI::class));
  40.  
  41.         return [
  42.             'uri'   => $uri,
  43.             'value' => null,
  44.         ];
  45.     }
  46. }
  47.  
  48. echo URI::ME . URI::$st1;
  49.  
  50. __halt_compiler () ;
  51. /*
  52. datahere
  53. datahere
  54. datahere */
  55. ?>
Parsed in 0.022 seconds