remove() public method

This method does nothing if the tag does not exist.
public remove ( string $tag )
$tag string The tag of the style.
Esempio n. 1
0
 /**
  * Removes a style from the style set.
  *
  * @param string $tag The tag of the style to remove.
  *
  * @return static The current instance.
  *
  * @see StyleSet::remove()
  */
 public function removeStyle($tag)
 {
     if ($this->styleSet) {
         $this->styleSet->remove($tag);
     }
     return $this;
 }
Esempio n. 2
0
 public function testRemoveIgnoresNonExistingTag()
 {
     $styleSet = new StyleSet();
     $styleSet->remove('style');
     $this->assertSame(array(), $styleSet->toArray());
 }