toArray() public method

Returns all styles.
public toArray ( ) : Style[]
return Style[] The styles indexed by their tags.
Example #1
0
 public function testClear()
 {
     $styleSet = new StyleSet();
     $styleSet->add(Style::tag('style1'));
     $styleSet->clear();
     $this->assertSame(array(), $styleSet->toArray());
 }