Phpro\SoapClient\CodeGenerator\Rules\RuleInterface::apply PHP Method

apply() public method

public apply ( Phpro\SoapClient\CodeGenerator\Context\ContextInterface $context )
$context Phpro\SoapClient\CodeGenerator\Context\ContextInterface
    public function apply(ContextInterface $context);

Usage Example

Example #1
0
 /**
  * @param RuleInterface    $rule
  * @param ContextInterface $context
  */
 private function applyRule(RuleInterface $rule, ContextInterface $context)
 {
     if (!$rule->appliesToContext($context)) {
         return;
     }
     $rule->apply($context);
 }
All Usage Examples Of Phpro\SoapClient\CodeGenerator\Rules\RuleInterface::apply