コード例 #1
0
 /**
  * Get advisor code
  *
  * @param RiaCompanyInformation $companyInformation
  * @return string
  */
 protected function getAdvisorCode(RiaCompanyInformation $companyInformation = null)
 {
     $code = '';
     if (null !== $companyInformation) {
         /** @var AdvisorCode $advisorCode */
         foreach ($companyInformation->getAdvisorCodes() as $advisorCode) {
             if ($advisorCode->getCustodian() == $companyInformation->getCustodian()) {
                 $code = $advisorCode->getName();
                 break;
             }
         }
     }
     return $code;
 }