src/Mouf/MoufManager.php
public function setParameterViaSetter($instanceName, $setterName, $paramValue, $type = "string", array $metadata = array()) {
		if ($type != "string" && $type != "config" && $type != "request" && $type != "session" && $type != "php") {
			throw new MoufContainerException("Invalid type. Must be one of: string|config|request|session");
		}

		$this->declaredInstances[$instanceName]["setterProperties"][$setterName]["value"] = $paramValue;
		$this->declaredInstances[$instanceName]["setterProperties"][$setterName]["type"] = $type;
		$this->declaredInstances[$instanceName]["setterProperties"][$setterName]["metadata"] = $metadata;
	}
public function setParameterViaSetter($instanceName, $setterName, $paramValue, $type = "string", array $metadata = array()) {
		if ($type != "string" && $type != "config" && $type != "request" && $type != "session" && $type != "php") {
			throw new MoufContainerException("Invalid type. Must be one of: string|config|request|session");
		}

		$this->declaredInstances[$instanceName]["setterProperties"][$setterName]["value"] = $paramValue;
		$this->declaredInstances[$instanceName]["setterProperties"][$setterName]["type"] = $type;
		$this->declaredInstances[$instanceName]["setterProperties"][$setterName]["metadata"] = $metadata;
	}
public function setParameterViaSetter ( $ instanceName , $ setterName , $ paramValue , $ type = "string" , array $ metadata = array ( ) ) { if ( $ type != "string" && $ type != "config" && $ type != "request" && $ type != "session" && $ type != "php" ) { throw new MoufContainerException ( "Invalid type. Must be one of: string|config|request|session" ) ; } $ this -> declaredInstances [ $ instanceName ] [ "setterProperties" ] [ $ setterName ] [ "value" ] = $ paramValue ; $ this -> declaredInstances [ $ instanceName ] [ "setterProperties" ] [ $ setterName ] [ "type" ] = $ type ; $ this -> declaredInstances [ $ instanceName ] [ "setterProperties" ] [ $ setterName ] [ "metadata" ] = $ metadata ; }
Binds a parameter to the instance using a setter.

@param string $instanceName
@param string $setterName
@param string $paramValue
@param string $type Can be one of "string|config|request|session|php"
@param array $metadata An array containing metadata
Binds a parameter to the instance using a setter .