function ifMatchesApply (Component $component)
  {
    if ($this->matches ($component)) {
      $this->apply ($component);
      return true;
    }
    return false;
  }
function ifMatchesApply (Component $component)
  {
    if ($this->matches ($component)) {
      $this->apply ($component);
      return true;
    }
    return false;
  }
function ifMatchesApply ( Component $ component ) { if ( $ this -> matches ( $ component ) ) { $ this -> apply ( $ component ) ; return true ; } return false ; }
If the given component matches the preset's selector, it applies the preset to it.

@param Component $component
@return bool true if the preset was applied.
@throws \Matisse\Exceptions\ComponentException
@throws \Matisse\Exceptions\ReflectionPropertyException
If the given component matches the preset s selector it applies the preset to it .