Skip to content

Commit

Permalink
Merge pull request #173 from amocrm/dev
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
bessudnov authored Nov 9, 2020
2 parents e02f0aa + 9caf6c9 commit 3406779
Show file tree
Hide file tree
Showing 61 changed files with 742 additions and 374 deletions.
16 changes: 8 additions & 8 deletions src/AmoCRM/Collections/CallsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
*
* @package AmoCRM\Collections
*
* @method CallModel current() : ?BaseApiModel
* @method CallModel last() : ?BaseApiModel
* @method CallModel first() : ?BaseApiModel
* @method CallModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, CallModel $value) : BaseApiCollection
* @method self prepend(CallModel $value) : BaseApiCollection
* @method self add(CallModel $value) : BaseApiCollection
* @method CallModel getBy($key, $value) : ?BaseApiModel
* @method null|CallModel current()
* @method null|CallModel last()
* @method null|CallModel first()
* @method null|CallModel offsetGet($offset)
* @method CallsCollection offsetSet($offset, CallModel $value)
* @method CallsCollection prepend(CallModel $value)
* @method CallsCollection add(CallModel $value)
* @method null|CallModel getBy($key, $value)
*/
class CallsCollection extends BaseApiCollection implements HasPagesInterface
{
Expand Down
16 changes: 8 additions & 8 deletions src/AmoCRM/Collections/CatalogElementsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
*
* @package AmoCRM\Collections
*
* @method CatalogElementModel current() : ?BaseApiModel
* @method CatalogElementModel last() : ?BaseApiModel
* @method CatalogElementModel first() : ?BaseApiModel
* @method CatalogElementModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, CatalogElementModel $value) : BaseApiCollection
* @method self prepend(CatalogElementModel $value) : BaseApiCollection
* @method self add(CatalogElementModel $value) : BaseApiCollection
* @method CatalogElementModel getBy($key, $value) : ?BaseApiModel
* @method null|CatalogElementModel current()
* @method null|CatalogElementModel last()
* @method null|CatalogElementModel first()
* @method null|CatalogElementModel offsetGet($offset)
* @method CatalogElementsCollection offsetSet($offset, CatalogElementModel $value)
* @method CatalogElementsCollection prepend(CatalogElementModel $value)
* @method CatalogElementsCollection add(CatalogElementModel $value)
* @method null|CatalogElementModel getBy($key, $value)
*/
class CatalogElementsCollection extends BaseApiCollection implements HasPagesInterface
{
Expand Down
16 changes: 8 additions & 8 deletions src/AmoCRM/Collections/CatalogsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
*
* @package AmoCRM\Collections
*
* @method CatalogModel current() : ?BaseApiModel
* @method CatalogModel last() : ?BaseApiModel
* @method CatalogModel first() : ?BaseApiModel
* @method CatalogModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, CatalogModel $value) : BaseApiCollection
* @method self prepend(CatalogModel $value) : BaseApiCollection
* @method self add(CatalogModel $value) : BaseApiCollection
* @method CatalogModel getBy($key, $value) : ?BaseApiModel
* @method null|CatalogModel current()
* @method null|CatalogModel last()
* @method null|CatalogModel first()
* @method null|CatalogModel offsetGet($offset)
* @method CatalogsCollection offsetSet($offset, CatalogModel $value)
* @method CatalogsCollection prepend(CatalogModel $value)
* @method CatalogsCollection add(CatalogModel $value)
* @method null|CatalogModel getBy($key, $value)
*/
class CatalogsCollection extends BaseApiCollection implements HasPagesInterface
{
Expand Down
16 changes: 8 additions & 8 deletions src/AmoCRM/Collections/CompaniesCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
*
* @package AmoCRM\Collections
*
* @method CompanyModel current() : ?BaseApiModel
* @method CompanyModel last() : ?BaseApiModel
* @method CompanyModel first() : ?BaseApiModel
* @method CompanyModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, CompanyModel $value) : BaseApiCollection
* @method self prepend(CompanyModel $value) : BaseApiCollection
* @method self add(CompanyModel $value) : BaseApiCollection
* @method CompanyModel getBy($key, $value) : ?BaseApiModel
* @method null|CompanyModel current()
* @method null|CompanyModel last()
* @method null|CompanyModel first()
* @method null|CompanyModel offsetGet($offset)
* @method CompaniesCollection offsetSet($offset, CompanyModel $value)
* @method CompaniesCollection prepend(CompanyModel $value)
* @method CompaniesCollection add(CompanyModel $value)
* @method null|CompanyModel getBy($key, $value)
*/
class CompaniesCollection extends BaseApiCollection implements HasPagesInterface
{
Expand Down
16 changes: 8 additions & 8 deletions src/AmoCRM/Collections/ContactsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
*
* @package AmoCRM\Collections
*
* @method ContactModel current() : ?BaseApiModel
* @method ContactModel last() : ?BaseApiModel
* @method ContactModel first() : ?BaseApiModel
* @method ContactModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, ContactModel $value) : BaseApiCollection
* @method self prepend(ContactModel $value) : BaseApiCollection
* @method self add(ContactModel $value) : BaseApiCollection
* @method ContactModel getBy($key, $value) : ?BaseApiModel
* @method null|ContactModel current()
* @method null|ContactModel last()
* @method null|ContactModel first()
* @method null|ContactModel offsetGet($offset)
* @method ContactsCollection offsetSet($offset, ContactModel $value)
* @method ContactsCollection prepend(ContactModel $value)
* @method ContactsCollection add(ContactModel $value)
* @method null|ContactModel getBy($key, $value)
*/
class ContactsCollection extends BaseApiCollection implements HasPagesInterface
{
Expand Down
16 changes: 8 additions & 8 deletions src/AmoCRM/Collections/CustomFieldGroupsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
*
* @package AmoCRM\Collections
*
* @method CustomFieldGroupModel current() : ?BaseApiModel
* @method CustomFieldGroupModel last() : ?BaseApiModel
* @method CustomFieldGroupModel first() : ?BaseApiModel
* @method CustomFieldGroupModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, CustomFieldGroupModel $value) : BaseApiCollection
* @method self prepend(CustomFieldGroupModel $value) : BaseApiCollection
* @method self add(CustomFieldGroupModel $value) : BaseApiCollection
* @method CustomFieldGroupModel getBy($key, $value) : ?BaseApiModel
* @method null|CustomFieldGroupModel current()
* @method null|CustomFieldGroupModel last()
* @method null|CustomFieldGroupModel first()
* @method null|CustomFieldGroupModel offsetGet($offset)
* @method CustomFieldGroupsCollection offsetSet($offset, CustomFieldGroupModel $value)
* @method CustomFieldGroupsCollection prepend(CustomFieldGroupModel $value)
* @method CustomFieldGroupsCollection add(CustomFieldGroupModel $value)
* @method null|CustomFieldGroupModel getBy($key, $value)
*/
class CustomFieldGroupsCollection extends BaseApiCollection
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
*
* @package AmoCRM\Collections
*
* @method EnumModel current() : ?BaseApiModel
* @method EnumModel last() : ?BaseApiModel
* @method EnumModel first() : ?BaseApiModel
* @method EnumModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, EnumModel $value) : BaseApiCollection
* @method self prepend(EnumModel $value) : BaseApiCollection
* @method self add(EnumModel $value) : BaseApiCollection
* @method EnumModel getBy($key, $value) : ?BaseApiModel
* @method null|EnumModel current()
* @method null|EnumModel last()
* @method null|EnumModel first()
* @method null|EnumModel offsetGet($offset)
* @method CustomFieldEnumsCollection offsetSet($offset, EnumModel $value)
* @method CustomFieldEnumsCollection prepend(EnumModel $value)
* @method CustomFieldEnumsCollection add(EnumModel $value)
* @method null|EnumModel getBy($key, $value)
*/
class CustomFieldEnumsCollection extends BaseApiCollection
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
*
* @package AmoCRM\Collections
*
* @method NestedModel current() : ?BaseApiModel
* @method NestedModel last() : ?BaseApiModel
* @method NestedModel first() : ?BaseApiModel
* @method NestedModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, NestedModel $value) : BaseApiCollection
* @method self prepend(NestedModel $value) : BaseApiCollection
* @method self add(NestedModel $value) : BaseApiCollection
* @method NestedModel getBy($key, $value) : ?BaseApiModel
* @method null|NestedModel current()
* @method null|NestedModel last()
* @method null|NestedModel first()
* @method null|NestedModel offsetGet($offset)
* @method CustomFieldNestedCollection offsetSet($offset, NestedModel $value)
* @method CustomFieldNestedCollection prepend(NestedModel $value)
* @method CustomFieldNestedCollection add(NestedModel $value)
* @method null|NestedModel getBy($key, $value)
*/
class CustomFieldNestedCollection extends BaseApiCollection
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
*
* @package AmoCRM\Collections
*
* @method RequiredStatusModel current() : ?BaseApiModel
* @method RequiredStatusModel last() : ?BaseApiModel
* @method RequiredStatusModel first() : ?BaseApiModel
* @method RequiredStatusModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, RequiredStatusModel $value) : BaseApiCollection
* @method self prepend(RequiredStatusModel $value) : BaseApiCollection
* @method self add(RequiredStatusModel $value) : BaseApiCollection
* @method RequiredStatusModel getBy($key, $value) : ?BaseApiModel
* @method null|RequiredStatusModel current()
* @method null|RequiredStatusModel last()
* @method null|RequiredStatusModel first()
* @method null|RequiredStatusModel offsetGet($offset)
* @method CustomFieldRequiredStatusesCollection offsetSet($offset, RequiredStatusModel $value)
* @method CustomFieldRequiredStatusesCollection prepend(RequiredStatusModel $value)
* @method CustomFieldRequiredStatusesCollection add(RequiredStatusModel $value)
* @method null|RequiredStatusModel getBy($key, $value)
*/
class CustomFieldRequiredStatusesCollection extends BaseApiCollection
{
Expand Down
16 changes: 8 additions & 8 deletions src/AmoCRM/Collections/CustomFields/CustomFieldsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
*
* @package AmoCRM\Collections
*
* @method CustomFieldModel current() : ?BaseApiModel
* @method CustomFieldModel last() : ?BaseApiModel
* @method CustomFieldModel first() : ?BaseApiModel
* @method CustomFieldModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, CustomFieldModel $value) : BaseApiCollection
* @method self prepend(CustomFieldModel $value) : BaseApiCollection
* @method self add(CustomFieldModel $value) : BaseApiCollection
* @method CustomFieldModel|WithEnumCustomFieldModel getBy($key, $value) : ?BaseApiModel
* @method null|CustomFieldModel current()
* @method null|CustomFieldModel last()
* @method null|CustomFieldModel first()
* @method null|CustomFieldModel offsetGet($offset)
* @method CustomFieldsCollection offsetSet($offset, CustomFieldModel $value)
* @method CustomFieldsCollection prepend(CustomFieldModel $value)
* @method CustomFieldsCollection add(CustomFieldModel $value)
* @method null|CustomFieldModel|WithEnumCustomFieldModel getBy($key, $value)
*/
class CustomFieldsCollection extends BaseApiCollection implements HasPagesInterface
{
Expand Down
16 changes: 8 additions & 8 deletions src/AmoCRM/Collections/CustomFieldsValuesCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
*
* @package AmoCRM\Collections
*
* @method BaseCustomFieldValuesModel current() : ?BaseApiModel
* @method BaseCustomFieldValuesModel last() : ?BaseApiModel
* @method BaseCustomFieldValuesModel first() : ?BaseApiModel
* @method BaseCustomFieldValuesModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, BaseCustomFieldValuesModel $value) : BaseApiCollection
* @method self prepend(BaseCustomFieldValuesModel $value) : BaseApiCollection
* @method self add(BaseCustomFieldValuesModel $value) : BaseApiCollection
* @method BaseCustomFieldValuesModel getBy($key, $value) : ?BaseApiModel
* @method null|BaseCustomFieldValuesModel current()
* @method null|BaseCustomFieldValuesModel last()
* @method null|BaseCustomFieldValuesModel first()
* @method null|BaseCustomFieldValuesModel offsetGet($offset)
* @method CustomFieldsValuesCollection offsetSet($offset, BaseCustomFieldValuesModel $value)
* @method CustomFieldsValuesCollection prepend(BaseCustomFieldValuesModel $value)
* @method CustomFieldsValuesCollection add(BaseCustomFieldValuesModel $value)
* @method null|BaseCustomFieldValuesModel getBy($key, $value)
*/
class CustomFieldsValuesCollection extends BaseApiCollection
{
Expand Down
16 changes: 8 additions & 8 deletions src/AmoCRM/Collections/Customers/CustomersCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
*
* @package AmoCRM\Collections\Customers
*
* @method CustomerModel current() : ?BaseApiModel
* @method CustomerModel last() : ?BaseApiModel
* @method CustomerModel first() : ?BaseApiModel
* @method CustomerModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, CustomerModel $value) : BaseApiCollection
* @method self prepend(CustomerModel $value) : BaseApiCollection
* @method self add(CustomerModel $value) : BaseApiCollection
* @method CustomerModel getBy($key, $value) : ?BaseApiModel
* @method null|CustomerModel current()
* @method null|CustomerModel last()
* @method null|CustomerModel first()
* @method null|CustomerModel offsetGet($offset)
* @method CustomersCollection offsetSet($offset, CustomerModel $value)
* @method CustomersCollection prepend(CustomerModel $value)
* @method CustomersCollection add(CustomerModel $value)
* @method null|CustomerModel getBy($key, $value)
*/
class CustomersCollection extends BaseApiCollection implements HasPagesInterface
{
Expand Down
17 changes: 9 additions & 8 deletions src/AmoCRM/Collections/Customers/Segments/SegmentsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
use AmoCRM\Collections\BaseApiCollection;
use AmoCRM\Collections\Interfaces\HasPagesInterface;
use AmoCRM\Collections\Traits\PagesTrait;
use AmoCRM\Models\BaseApiModel;
use AmoCRM\Models\Customers\Segments\SegmentModel;

/**
* Class SegmentsCollection
*
* @package AmoCRM\Collections\Customers\Segments
*
* @method SegmentModel current() : ?BaseApiModel
* @method SegmentModel last() : ?BaseApiModel
* @method SegmentModel first() : ?BaseApiModel
* @method SegmentModel offsetGet($offset) : ?BaseApiModel
* @method SegmentsCollection offsetSet($offset, SegmentModel $value) : BaseApiCollection
* @method SegmentsCollection prepend(SegmentModel $value) : BaseApiCollection
* @method SegmentsCollection add(SegmentModel $value) : BaseApiCollection
* @method SegmentModel getBy($key, $value) : ?BaseApiModel
* @method null|SegmentModel current()
* @method null|SegmentModel last()
* @method null|SegmentModel first()
* @method null|SegmentModel offsetGet($offset)
* @method SegmentsCollection offsetSet($offset, SegmentModel $value)
* @method SegmentsCollection prepend(SegmentModel $value)
* @method SegmentsCollection add(SegmentModel $value)
* @method null|SegmentModel getBy($key, $value)
*/
class SegmentsCollection extends BaseApiCollection implements HasPagesInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
*
* @package AmoCRM\Collections\Customers\Transactions
*
* @method TransactionModel current() : ?BaseApiModel
* @method TransactionModel last() : ?BaseApiModel
* @method TransactionModel first() : ?BaseApiModel
* @method TransactionModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, TransactionModel $value) : BaseApiCollection
* @method self prepend(TransactionModel $value) : BaseApiCollection
* @method self add(TransactionModel $value) : BaseApiCollection
* @method TransactionModel getBy($key, $value) : ?BaseApiModel
* @method null|TransactionModel current()
* @method null|TransactionModel last()
* @method null|TransactionModel first()
* @method null|TransactionModel offsetGet($offset)
* @method TransactionsCollection offsetSet($offset, TransactionModel $value)
* @method TransactionsCollection prepend(TransactionModel $value)
* @method TransactionsCollection add(TransactionModel $value)
* @method null|TransactionModel getBy($key, $value)
*/
class TransactionsCollection extends BaseApiCollection
{
Expand Down
16 changes: 8 additions & 8 deletions src/AmoCRM/Collections/EventsCollections.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
*
* @package AmoCRM\Collections
*
* @method EventModel current() : ?BaseApiModel
* @method EventModel last() : ?BaseApiModel
* @method EventModel first() : ?BaseApiModel
* @method EventModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, EventModel $value) : BaseApiCollection
* @method self prepend(EventModel $value) : BaseApiCollection
* @method self add(EventModel $value) : BaseApiCollection
* @method EventModel getBy($key, $value) : ?BaseApiModel
* @method null|EventModel current()
* @method null|EventModel last()
* @method null|EventModel first()
* @method null|EventModel offsetGet($offset)
* @method EventsCollections offsetSet($offset, EventModel $value)
* @method EventsCollections prepend(EventModel $value)
* @method EventsCollections add(EventModel $value)
* @method null|EventModel getBy($key, $value)
*/
class EventsCollections extends BaseApiCollection implements HasPagesInterface
{
Expand Down
16 changes: 8 additions & 8 deletions src/AmoCRM/Collections/Leads/LeadsCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
*
* @package AmoCRM\Collections\Leads
*
* @method LeadModel current() : ?BaseApiModel
* @method LeadModel last() : ?BaseApiModel
* @method LeadModel first() : ?BaseApiModel
* @method LeadModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, LeadModel $value) : BaseApiCollection
* @method self prepend(LeadModel $value) : BaseApiCollection
* @method self add(LeadModel $value) : BaseApiCollection
* @method LeadModel getBy($key, $value) : ?BaseApiModel
* @method null|LeadModel current()
* @method null|LeadModel last()
* @method null|LeadModel first()
* @method null|LeadModel offsetGet($offset)
* @method LeadsCollection offsetSet($offset, LeadModel $value)
* @method LeadsCollection prepend(LeadModel $value)
* @method LeadsCollection add(LeadModel $value)
* @method null|LeadModel getBy($key, $value)
*/
class LeadsCollection extends BaseApiCollection implements HasPagesInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
*
* @package AmoCRM\Collections\Leads\LossReasons
*
* @method LossReasonModel current() : ?BaseApiModel
* @method LossReasonModel last() : ?BaseApiModel
* @method LossReasonModel first() : ?BaseApiModel
* @method LossReasonModel offsetGet($offset) : ?BaseApiModel
* @method self offsetSet($offset, LossReasonModel $value) : BaseApiCollection
* @method self prepend(LossReasonModel $value) : BaseApiCollection
* @method self add(LossReasonModel $value) : BaseApiCollection
* @method LossReasonModel getBy($key, $value) : ?BaseApiModel
* @method null|LossReasonModel current()
* @method null|LossReasonModel last()
* @method null|LossReasonModel first()
* @method null|LossReasonModel offsetGet($offset)
* @method LossReasonsCollection offsetSet($offset, LossReasonModel $value)
* @method LossReasonsCollection prepend(LossReasonModel $value)
* @method LossReasonsCollection add(LossReasonModel $value)
* @method null|LossReasonModel getBy($key, $value)
*/
class LossReasonsCollection extends BaseApiCollection
{
Expand Down
Loading

0 comments on commit 3406779

Please sign in to comment.