Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Pull in the network parameters we need
- $closure = function($collection_item){
- switch ($collection_item->getAccountType())
- {
- case \Entities\Repositories\NetworkParamsRepository::ACCOUNT_TYPE_MERCHANT:
- case \Entities\Repositories\NetworkParamsRepository::ACCOUNT_TYPE_HYBRID:
- return true;
- }
- return false;
- };
- $networkParams = $this->program->getNetwork()->getNetworkParams($closure);
- **************************
- /**
- *
- * @return Doctrine\Common\Collections\Collection $network_params;
- */
- public function getNetworkParams(\Closure $filter = null)
- {
- if (!is_null($filter))
- {
- return $this->network_params->filter($filter);
- }
- return $this->network_params;
- }
Add Comment
Please, Sign In to add comment