OCA\OcSms\Lib\ContactCache::pushPhoneNumberToCache PHP Method

pushPhoneNumberToCache() private method

private pushPhoneNumberToCache ( $rawPhone, $contactName, $country )
    private function pushPhoneNumberToCache($rawPhone, $contactName, $country)
    {
        $phoneNb = PhoneNumberFormatter::format($country, $rawPhone);
        $this->contacts[$phoneNb] = $contactName;
        // Inverted contacts
        if (!isset($this->contactsInverted[$contactName])) {
            $this->contactsInverted[$contactName] = array();
        }
        array_push($this->contactsInverted[$contactName], $phoneNb);
    }