/** * @param BeneficiaryAdapterInterface * @param String The key to read the config from * @return BeneficiaryLines */ public static function create(BeneficiaryAdapterInterface $beneficiary, $config_key) { $beneficiary_lines = new BeneficiaryLines($beneficiary); $beneficiary_lines->addLine(static::createCOSDetailsRecordLine($beneficiary, $config_key)); $beneficiary_lines->addLine(static::createBeneficiaryRecordLine($beneficiary, $config_key)); $beneficiary_lines->addLine(static::createAdvisingRecordLine($beneficiary, $config_key)); return $beneficiary_lines; }
/** * @param Model * @param String the key to read the configuration from * @return BeneficiaryLines */ public static function create($beneficiary, $config_key) { $beneficiary_lines = new BeneficiaryLines($beneficiary); $beneficiary_lines->addLine(static::cashiersOrderFormatPaymentInstructionLine($beneficiary, $config_key)); return $beneficiary_lines; }