Event.php
function collector($options = null)
    {
        if (! $this->collector )
            $this->collector = new DataCollector;

        if (null !== $options) {
            $this->collector->import($options);
            return $this;
        }

        return $this->collector;
    }
function collector($options = null)
    {
        if (! $this->collector )
            $this->collector = new DataCollector;

        if (null !== $options) {
            $this->collector->import($options);
            return $this;
        }

        return $this->collector;
    }
function collector ( $ options = null ) { if ( ! $ this -> collector ) $ this -> collector = new DataCollector ; if ( null !== $ options ) { $ this -> collector -> import ( $ options ) ; return $ this ; } return $ this -> collector ; }
Events Result Collector

- collector(['key_as_option' => $value])

@param null|array|\Traversable $options

@return DataCollector|$this
Events Result Collector