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

toArray() public method

Returns all styles.
public toArray ( ) : Style[]
return Style[] The styles indexed by their tags.
    public function toArray()
    {
        return $this->styles;
    }

Usage Example

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