public function getEmployeeIdByKey($cardNumber)
    {
        $cardNumber = $this->prepareKey($cardNumber);
        $result     = null;
        $this->addHeader();
        try {
            $soapResult = $this->getSoap()->GetAssignedAcsKeyByKeyNumber([
                'keyNumber' => $cardNumber
            ]);
            if (isset($soapResult->GetAssignedAcsKeyByKeyNumberResult->AcsEmployeeId)) {
                $result = $soapResult->GetAssignedAcsKeyByKeyNumberResult->AcsEmployeeId;
            }
        } catch (\SoapFault $ex) {
            $this->logError();
        }

        return $result;
    }
public function getEmployeeIdByKey($cardNumber)
    {
        $cardNumber = $this->prepareKey($cardNumber);
        $result     = null;
        $this->addHeader();
        try {
            $soapResult = $this->getSoap()->GetAssignedAcsKeyByKeyNumber([
                'keyNumber' => $cardNumber
            ]);
            if (isset($soapResult->GetAssignedAcsKeyByKeyNumberResult->AcsEmployeeId)) {
                $result = $soapResult->GetAssignedAcsKeyByKeyNumberResult->AcsEmployeeId;
            }
        } catch (\SoapFault $ex) {
            $this->logError();
        }

        return $result;
    }
public function getEmployeeIdByKey ( $ cardNumber ) { $ cardNumber = $ this -> prepareKey ( $ cardNumber ) ; $ result = null ; $ this -> addHeader ( ) ; try { $ soapResult = $ this -> getSoap ( ) -> GetAssignedAcsKeyByKeyNumber ( [ 'keyNumber' => $ cardNumber ] ) ; if ( isset ( $ soapResult -> GetAssignedAcsKeyByKeyNumberResult -> AcsEmployeeId ) ) { $ result = $ soapResult -> GetAssignedAcsKeyByKeyNumberResult -> AcsEmployeeId ; } } catch ( \ SoapFault $ ex ) { $ this -> logError ( ) ; } return $ result ; }
Returnes employees's id by card number

@param string $cardNumber
@return integer
Returnes employees s id by card number