/** * {@inheritDoc} */ public function generateSignature(array $parameters) { return $this->parameterEncoder->encodeParameters($parameters); }
/** * @dataProvider getParameters * * @covers \ProxyManager\Inflector\Util\ParameterEncoder::encodeParameters */ public function testGeneratesValidClassName(array $parameters) { $encoder = new ParameterEncoder(); $this->assertRegExp('/[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]+/', $encoder->encodeParameters($parameters), 'Encoded string is a valid class identifier'); }
/** * {@inheritDoc} */ public function getProxyClassName($className, array $options = array()) { return $this->proxyNamespace . $this->proxyMarker . $this->getUserClassName($className) . '\\' . $this->parameterEncoder->encodeParameters($options); }