registerArgument('haystack', 'string', 'haystack', true); $this->registerArgument('needle', 'string', 'need', true); } /** * @param array $arguments * @return bool */ protected static function evaluateCondition($arguments = null) { return false !== strpos($arguments['haystack'], $arguments['needle']); } }