Webmozart\Console\Api\Formatter\StyleSet::clear PHP Method

clear() public method

Clears the contents of the style set.
public clear ( )
    public function clear()
    {
        $this->styles = array();
    }

Usage Example

Example #1
0
 public function testClear()
 {
     $styleSet = new StyleSet();
     $styleSet->add(Style::tag('style1'));
     $styleSet->clear();
     $this->assertSame(array(), $styleSet->toArray());
 }