-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from camaxtly/master
Подсказки для юр лиц и ИП
- Loading branch information
Showing
8 changed files
with
638 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Dadata\Response\Suggestions; | ||
|
||
abstract class AbstractResponse | ||
{ | ||
protected $rawResponse; | ||
|
||
public function getRawResponse() | ||
{ | ||
return $this->rawResponse; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Dadata\Response\Suggestions\Party; | ||
|
||
class AddressDto | ||
{ | ||
private $value; | ||
private $unrestrictedValue; | ||
|
||
public function __construct( | ||
$value, | ||
$unrestrictedValue | ||
) { | ||
$this->value = $value; | ||
$this->unrestrictedValue = $unrestrictedValue; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getValue() | ||
{ | ||
return $this->value; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getUnrestrictedValue() | ||
{ | ||
return $this->unrestrictedValue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace Dadata\Response\Suggestions\Party; | ||
|
||
class ManagementDto | ||
{ | ||
/** | ||
* @var string ФИО руководителя | ||
*/ | ||
private $name; | ||
/** | ||
* @var string Должность руководителя | ||
*/ | ||
private $post; | ||
|
||
public function __construct($name, $post) | ||
{ | ||
$this->name = $name; | ||
$this->post = $post; | ||
} | ||
|
||
/** | ||
* Получить ФИО руководителя | ||
* | ||
* @return string | ||
*/ | ||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* Получить должность руководителя | ||
* | ||
* @return string | ||
*/ | ||
public function getPost() | ||
{ | ||
return $this->post; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?php | ||
|
||
namespace Dadata\Response\Suggestions\Party; | ||
|
||
class NameDto | ||
{ | ||
/** | ||
* @var string Полное наименование с ОПФ | ||
*/ | ||
private $fullWithOpf; | ||
/** | ||
* @var string Краткое наименование с ОПФ | ||
*/ | ||
private $shortWithOpf; | ||
/** | ||
* @var string Наименование на латинице | ||
*/ | ||
private $latin; | ||
/** | ||
* @var string Полное наименование | ||
*/ | ||
private $full; | ||
/** | ||
* @var string Краткое наименование | ||
*/ | ||
private $short; | ||
|
||
public function __construct( | ||
$fullWithOpf, | ||
$shortWithOpf, | ||
$latin, | ||
$full, | ||
$short | ||
) { | ||
$this->fullWithOpf = $fullWithOpf; | ||
$this->shortWithOpf = $shortWithOpf; | ||
$this->latin = $latin; | ||
$this->full = $full; | ||
$this->short = $short; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getFullWithOpf() | ||
{ | ||
return $this->fullWithOpf; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getShortWithOpf() | ||
{ | ||
return $this->shortWithOpf; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getLatin() | ||
{ | ||
return $this->latin; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getFull() | ||
{ | ||
return $this->full; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getShort() | ||
{ | ||
return $this->short; | ||
} | ||
} |
Oops, something went wrong.