public function byType($type)
    {
        $filtered_messages = $this->filterMessage('type', $type);

        $this->filtered = $filtered_messages;

        return $this;
    }
public function byType($type)
    {
        $filtered_messages = $this->filterMessage('type', $type);

        $this->filtered = $filtered_messages;

        return $this;
    }
public function byType ( $ type ) { $ filtered_messages = $ this -> filterMessage ( 'type' , $ type ) ; $ this -> filtered = $ filtered_messages ; return $ this ; }
Filter messages by type.

@param string $type

@return $this
Filter messages by type .