@@ 1274-1286 (lines=13) @@ | ||
1271 | * |
|
1272 | * @return ContactPhone|null |
|
1273 | */ |
|
1274 | public function getPrimaryPhone() |
|
1275 | { |
|
1276 | $result = null; |
|
1277 | ||
1278 | foreach ($this->getPhones() as $phone) { |
|
1279 | if ($phone->isPrimary()) { |
|
1280 | $result = $phone; |
|
1281 | break; |
|
1282 | } |
|
1283 | } |
|
1284 | ||
1285 | return $result; |
|
1286 | } |
|
1287 | ||
1288 | /** |
|
1289 | * @param ContactPhone $phone |
@@ 1191-1203 (lines=13) @@ | ||
1188 | * |
|
1189 | * @return LeadPhone|null |
|
1190 | */ |
|
1191 | public function getPrimaryPhone() |
|
1192 | { |
|
1193 | $result = null; |
|
1194 | ||
1195 | foreach ($this->getPhones() as $phone) { |
|
1196 | if ($phone->isPrimary()) { |
|
1197 | $result = $phone; |
|
1198 | break; |
|
1199 | } |
|
1200 | } |
|
1201 | ||
1202 | return $result; |
|
1203 | } |
|
1204 | ||
1205 | /** |
|
1206 | * @param LeadPhone $phone |