kahlan\Summary::add PHP Method

add() public method

Add a data to a specific key.
public add ( string $type, mixed $value ) : self
$type string The type of data.
$value mixed The value to add.
return self
    public function add($type, $value)
    {
        if (!isset($this->_data[$type])) {
            $this->_data[$type] = [];
        }
        $this->_data[$type][] = $value;
        return $this;
    }