/** * @return self * @codeCoverageIgnore */ public static function getInstance() { if (!self::$instance) { self::$instance = new self(VisitorFlyweight::getInstance()); } return self::$instance; }
/** * Get a default instance that includes that default location visitors * * @return self * @codeCoverageIgnore */ public static function getInstance() { if (!self::$instance) { self::$instance = new self(array('header' => new HeaderVisitor(), 'query' => new QueryVisitor(), 'body' => new BodyVisitor(), 'json' => new JsonVisitor(), 'postFile' => new PostFileVisitor(), 'postField' => new PostFieldVisitor(), 'xml' => new XmlVisitor(), 'response_body' => new ResponseBodyVisitor())); } return self::$instance; }