forked from PHPExpertsInc/domainsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DomainSearcher.php
48 lines (42 loc) · 1.9 KB
/
DomainSearcher.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
// This file is a part of the Domain Search App, a PHPExperts.pro Project.
//
// Copyright (c) 2012 Theodore R.Smith (theodore@phpexperts.pro)
// DSA-1024 Fingerprint: 10A0 6372 9092 85A2 BB7F 907B CB8B 654B E33B F1ED
// Provided by the PHP University (www.phpu.cc) and PHPExperts.pro (www.phpexperts.pro)
//
// This file is dually licensed under the terms of the following licenses:
// * Primary License: OSSAL v1.0 - Open Source Software Alliance License
// * Key points:
// 5.Redistributions of source code in any non-textual form (i.e.
// binary or object form, etc.) must not be linked to software that is
// released with a license that requires disclosure of source code
// (ex: the GPL).
// 6.Redistributions of source code must be licensed under more than one
// license and must not have the terms of the OSSAL removed.
// * See LICENSE.ossal for complete details.
//
// * Secondary License: Creative Commons Attribution License v3.0
// * Key Points:
// * You are free:
// * to copy, distribute, display, and perform the work
// * to make non-commercial or commercial use of the work in its original form
// * Under the following conditions:
// * Attribution. You must give the original author credit. You must retain all
// Copyright notices and you must include the sentence, "Based upon work from
// PHPExperts.pro (www.phpexperts.pro).", wherever you list contributors.
// * See LICENSE.cc_by for complete details.
class DomainSearcher
{
/** @var Interface_DomainAvailability */
protected $domainChecker;
public function __construct(Interface_DomainAvailability $domainAvailabilityChecker)
{
$this->domainChecker = $domainAvailabilityChecker;
}
public function checkDomainAvailability($domainsToSearch)
{
$domains = $this->domainChecker->query($domainsToSearch);
return $domains;
}
}