PHP   104

interface Factory

Guest on 22nd May 2022 04:20:44 AM

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

Raw Paste


Login or Register to edit or fork this paste. It's free.