Skip to content

Instantly share code, notes, and snippets.

View TonyGao's full-sized avatar

Tony Gao TonyGao

View GitHub Profile
<?php
/**
* This file is part of the prooph/event-store.
* (c) 2014-2016 prooph software GmbH <contact@prooph.de>
* (c) 2015-2016 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
@TonyGao
TonyGao / ArrClass.php
Created August 9, 2017 03:23
ArrClass
<?php
namespace Winterstrong\QQApiBundle\TypeClass;
class ArrClass extends ArrayObject {
private static $ret_obj = true;
public function add() {
$val = 0;
foreach($this as $vals) {
@TonyGao
TonyGao / StaticString.php
Created August 9, 2017 03:22
StaticString
<?php
namespace Winterstrong\QQApiBundle\TypeClass;
use Winterstrong\QQApiBundle\TypeClass\ArrClass as Arr;
/**
* Class StaticString
* @package Winterstrong\QQApiBundle\TypeClass
*
@TonyGao
TonyGao / StringClass.php
Created August 9, 2017 03:20
StringClass
<?php
namespace Winterstrong\QQApiBundle\TypeClass;
class StringClass implements \ArrayAccess {
public static $multibyte_encoding = null;
public static $multibyte = false;
private $value;
<?php
namespace CrawlerBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;