/** * @param Provider $provider * @return Modifier[] */ public function getProviderModifiers(Provider $provider) { $modifiers = []; foreach ($provider->getProviderPlugin()->getModifierData() as $key => $value) { $modifiers[] = new Modifier($key, $value, $provider->getMethodPlugin(), $provider); } return $modifiers; }
protected function getMethodForProvider($providerId) { return Provider::load($providerId)->getMethodPlugin(); }