diff --git a/app/Classes/Modules/Accounts/ControllersLogic/CreateUserLogic.php b/app/Classes/Modules/Accounts/ControllersLogic/CreateUserLogic.php index bc898205..77acdf8e 100644 --- a/app/Classes/Modules/Accounts/ControllersLogic/CreateUserLogic.php +++ b/app/Classes/Modules/Accounts/ControllersLogic/CreateUserLogic.php @@ -72,8 +72,9 @@ class CreateUserLogic extends AbstractControllerLogic /** @var CreatesSegmentCompany */ private $createsSegmentCompany; + /** - * CreateUserControllerLogic constructor. + * CreateUserLogic constructor. * @param CanCreateUser $canCreateUser * @param CreatesUser $createsUser * @param CanCreateCompany $canCreateCompany diff --git a/app/Classes/Modules/Accounts/ControllersLogic/RegistrationStep2Logic.php b/app/Classes/Modules/Accounts/ControllersLogic/RegistrationStep2Logic.php index 06f1286b..414ab066 100644 --- a/app/Classes/Modules/Accounts/ControllersLogic/RegistrationStep2Logic.php +++ b/app/Classes/Modules/Accounts/ControllersLogic/RegistrationStep2Logic.php @@ -67,8 +67,9 @@ class RegistrationStep2Logic extends AbstractControllerLogic /** @var Convert64ToFile */ private $convert64ToFile; + /** - * UpdateUserControllerLogic constructor. + * RegistrationStep2Logic constructor. * @param FetchesUser $fetchesUser * @param CanUpdateCompany $canUpdateCompany * @param UpdatesCompany $updatesCompany @@ -76,6 +77,7 @@ class RegistrationStep2Logic extends AbstractControllerLogic * @param CreatesDocument $createsDocument * @param CanCreateFile $canCreateFile * @param CreatesFile $createsFile + * @param Convert64ToFile $convert64ToFile */ public function __construct( FetchesUser $fetchesUser, diff --git a/app/Classes/Modules/Accounts/ControllersLogic/UpdateUserLogic.php b/app/Classes/Modules/Accounts/ControllersLogic/UpdateUserLogic.php index e28e7a35..979a93b9 100644 --- a/app/Classes/Modules/Accounts/ControllersLogic/UpdateUserLogic.php +++ b/app/Classes/Modules/Accounts/ControllersLogic/UpdateUserLogic.php @@ -67,8 +67,9 @@ class UpdateUserLogic extends AbstractControllerLogic /** @var Convert64ToFile */ private $convert64ToFile; + /** - * UpdateUserControllerLogic constructor. + * UpdateUserLogic constructor. * @param FetchesUser $fetchesUser * @param CanUpdateCompany $canUpdateCompany * @param UpdatesCompany $updatesCompany @@ -76,6 +77,7 @@ class UpdateUserLogic extends AbstractControllerLogic * @param CreatesDocument $createsDocument * @param CanCreateFile $canCreateFile * @param CreatesFile $createsFile + * @param Convert64ToFile $convert64ToFile */ public function __construct( FetchesUser $fetchesUser, diff --git a/app/Classes/Modules/Accounts/DataTransferObjects/AuthenticationCredentialsObject.php b/app/Classes/Modules/Accounts/DataTransferObjects/AuthenticationCredentialsObject.php index 874c25fa..7db93777 100644 --- a/app/Classes/Modules/Accounts/DataTransferObjects/AuthenticationCredentialsObject.php +++ b/app/Classes/Modules/Accounts/DataTransferObjects/AuthenticationCredentialsObject.php @@ -17,11 +17,12 @@ class AuthenticationCredentialsObject implements DataTransferObject /** @var boolean */ private $rememberUser; + /** - * AuthenticationCredentials constructor. + * AuthenticationCredentialsObject constructor. * @param string $email * @param string $password - * @param bool $rememberUser + * @param bool|null $rememberUser */ public function __construct(string $email, string $password, ?bool $rememberUser = false) { diff --git a/app/Classes/Modules/Accounts/DataTransferObjects/UserObject.php b/app/Classes/Modules/Accounts/DataTransferObjects/UserObject.php index 9c0c23de..36a6d40a 100644 --- a/app/Classes/Modules/Accounts/DataTransferObjects/UserObject.php +++ b/app/Classes/Modules/Accounts/DataTransferObjects/UserObject.php @@ -21,7 +21,7 @@ class UserObject implements DataTransferObject /** @var int */ private $type; - /** @var status */ + /** @var int */ private $status; /** diff --git a/app/Classes/Modules/Bookings/ControllerLogic/CreateBookingLogic.php b/app/Classes/Modules/Bookings/ControllerLogic/CreateBookingLogic.php index e1d4fa74..75a9b3e0 100644 --- a/app/Classes/Modules/Bookings/ControllerLogic/CreateBookingLogic.php +++ b/app/Classes/Modules/Bookings/ControllerLogic/CreateBookingLogic.php @@ -50,10 +50,12 @@ class CreateBookingLogic extends AbstractControllerLogic /** @var FetchesCurrency */ private $fetchesCurrency; + /** - * CreateSegmentLogic constructor. + * CreateBookingLogic constructor. * @param CanCreateBooking $canCreateBooking * @param CreatesBooking $createsBooking + * @param GeneratesBookingMarking $generatesBookingMarking * @param FetchesCompany $fetchesCompany * @param FetchesCompanyBank $fetchesCompanyBank * @param FetchesCurrency $fetchesCurrency diff --git a/app/Classes/Modules/Bookings/ControllerLogic/DeleteBookingLogic.php b/app/Classes/Modules/Bookings/ControllerLogic/DeleteBookingLogic.php index 78f3a0b5..dd9a7211 100644 --- a/app/Classes/Modules/Bookings/ControllerLogic/DeleteBookingLogic.php +++ b/app/Classes/Modules/Bookings/ControllerLogic/DeleteBookingLogic.php @@ -2,6 +2,8 @@ namespace App\Classes\Modules\Bookings\ControllersLogic; +use App\Classes\Modules\Segments\Services\UpdatesSegment; +use App\Classes\Modules\Segments\Standards\Rules\CanUpdateSegment; use App\Http\Resources\BookingResource; use App\Classes\General\Abstracts\AbstractControllerLogic; @@ -39,12 +41,7 @@ class DeleteBookingLogic extends AbstractControllerLogic /** @var FetchesBooking */ private $fetchesBooking; - /** - * UpdateStandardSegmentConstantLogic constructor. - * @param CanUpdateSegment $canDeleteBooking - * @param UpdatesSegment $deletesSegment - * @param FetchesBooking $fetchesBooking - */ + public function __construct( CanDeleteBooking $canDeleteBooking, DeletesBooking $deletesBooking, diff --git a/app/Classes/Modules/Bookings/ControllerLogic/UpdateBookingLogic.php b/app/Classes/Modules/Bookings/ControllerLogic/UpdateBookingLogic.php index 549c86f7..5db55b0d 100644 --- a/app/Classes/Modules/Bookings/ControllerLogic/UpdateBookingLogic.php +++ b/app/Classes/Modules/Bookings/ControllerLogic/UpdateBookingLogic.php @@ -33,14 +33,15 @@ class UpdateBookingLogic extends AbstractControllerLogic /** @var CanUpdateBooking */ private $canUpdateBooking; - /** @var UpdatesBookingRate */ - private $updatesBookingRate; + /** @var UpdatesBooking */ + private $updatesBooking; /** @var FetchesBooking */ private $fetchesBooking; + /** - * UpdateStandardSegmentConstantLogic constructor. + * UpdateBookingLogic constructor. * @param CanUpdateBooking $canUpdateBooking * @param UpdatesBooking $updatesBooking * @param FetchesBooking $fetchesBooking diff --git a/app/Classes/Modules/Bookings/DataTransferObjects/BookingObject.php b/app/Classes/Modules/Bookings/DataTransferObjects/BookingObject.php index 4e3a15bb..cb6239c5 100644 --- a/app/Classes/Modules/Bookings/DataTransferObjects/BookingObject.php +++ b/app/Classes/Modules/Bookings/DataTransferObjects/BookingObject.php @@ -14,6 +14,7 @@ class BookingObject implements DataTransferObject private $fix_currency_id; private $convertible_currency_id; private $conversion_currency_id; + /** * BookingObject constructor. * @param int|null $company_id diff --git a/app/Classes/Modules/Bookings/Services/ChecksIfBookingMarkingExists.php b/app/Classes/Modules/Bookings/Services/ChecksIfBookingMarkingExists.php index 45530853..76f4edd6 100644 --- a/app/Classes/Modules/Bookings/Services/ChecksIfBookingMarkingExists.php +++ b/app/Classes/Modules/Bookings/Services/ChecksIfBookingMarkingExists.php @@ -11,6 +11,7 @@ class ChecksIfBookingMarkingExists /** @var Booking */ private $repository; + /** * ChecksIfBookingMarkingExists constructor. * @param Booking $repository diff --git a/app/Classes/Modules/Bookings/Standards/Rules/CanCreateBooking.php b/app/Classes/Modules/Bookings/Standards/Rules/CanCreateBooking.php index 29cfac94..22dadccf 100644 --- a/app/Classes/Modules/Bookings/Standards/Rules/CanCreateBooking.php +++ b/app/Classes/Modules/Bookings/Standards/Rules/CanCreateBooking.php @@ -12,9 +12,10 @@ class CanCreateBooking extends AbstractRule /** @var BookingValidation */ private $bookingValidation; + /** * CanCreateBooking constructor. - * @param BookingValidation $BookingValidation + * @param BookingValidation $bookingValidation */ public function __construct(BookingValidation $bookingValidation) { diff --git a/app/Classes/Modules/Bookings/Standards/Rules/CanUpdateBooking.php b/app/Classes/Modules/Bookings/Standards/Rules/CanUpdateBooking.php index 9b7fc253..9df3e108 100644 --- a/app/Classes/Modules/Bookings/Standards/Rules/CanUpdateBooking.php +++ b/app/Classes/Modules/Bookings/Standards/Rules/CanUpdateBooking.php @@ -13,9 +13,10 @@ class CanUpdateBooking extends AbstractRule /** @var BookingValidation */ private $bookingValidation; + /** - * CanCreateAddress constructor. - * @param BookingValidation $BookingValidation + * CanUpdateBooking constructor. + * @param BookingValidation $bookingValidation */ public function __construct(BookingValidation $bookingValidation) { diff --git a/app/Classes/Modules/Companies/Services/FetchesCompany.php b/app/Classes/Modules/Companies/Services/FetchesCompany.php index 288ba922..c2f4f5bb 100644 --- a/app/Classes/Modules/Companies/Services/FetchesCompany.php +++ b/app/Classes/Modules/Companies/Services/FetchesCompany.php @@ -13,8 +13,9 @@ class FetchesCompany extends AbstractFetchRecord /** @var Company */ private $repository; + /** - * FetchesUser constructor. + * FetchesCompany constructor. * @param Company $repository */ public function __construct(Company $repository) diff --git a/app/Classes/Modules/Companies/Standards/Rules/CanCreateCompany.php b/app/Classes/Modules/Companies/Standards/Rules/CanCreateCompany.php index 39c00e03..d185ec79 100644 --- a/app/Classes/Modules/Companies/Standards/Rules/CanCreateCompany.php +++ b/app/Classes/Modules/Companies/Standards/Rules/CanCreateCompany.php @@ -11,8 +11,9 @@ class CanCreateCompany extends AbstractRule /** @var CompanyValidation */ private $companyValidation; + /** - * CanCreateUser constructor. + * CanCreateCompany constructor. * @param CompanyValidation $companyValidation */ public function __construct(CompanyValidation $companyValidation) diff --git a/app/Classes/Modules/Companies/Standards/Rules/CanUpdateCompany.php b/app/Classes/Modules/Companies/Standards/Rules/CanUpdateCompany.php index 7f0fd974..bf16fef8 100644 --- a/app/Classes/Modules/Companies/Standards/Rules/CanUpdateCompany.php +++ b/app/Classes/Modules/Companies/Standards/Rules/CanUpdateCompany.php @@ -11,8 +11,9 @@ class CanUpdateCompany extends AbstractRule /** @var CompanyValidation */ private $companyValidation; + /** - * CanCreateUser constructor. + * CanUpdateCompany constructor. * @param CompanyValidation $companyValidation */ public function __construct(CompanyValidation $companyValidation) diff --git a/app/Classes/Modules/CompanyBanks/ControllerLogic/CreateCompanyBankLogic.php b/app/Classes/Modules/CompanyBanks/ControllerLogic/CreateCompanyBankLogic.php index 1bdc43f7..06c538f9 100644 --- a/app/Classes/Modules/CompanyBanks/ControllerLogic/CreateCompanyBankLogic.php +++ b/app/Classes/Modules/CompanyBanks/ControllerLogic/CreateCompanyBankLogic.php @@ -32,8 +32,9 @@ class CreateCompanyBankLogic extends AbstractControllerLogic /** @var CreatesCompanyBank */ private $createsCompanyBank; + /** - * CreateSegmentLogic constructor. + * CreateCompanyBankLogic constructor. * @param CanCreateCompanyBank $canCreateCompanyBank * @param CreatesCompanyBank $createsCompanyBank */ diff --git a/app/Classes/Modules/CompanyBanks/ControllerLogic/DeleteCompanyBankLogic.php b/app/Classes/Modules/CompanyBanks/ControllerLogic/DeleteCompanyBankLogic.php index 91bbe068..e38e5db0 100644 --- a/app/Classes/Modules/CompanyBanks/ControllerLogic/DeleteCompanyBankLogic.php +++ b/app/Classes/Modules/CompanyBanks/ControllerLogic/DeleteCompanyBankLogic.php @@ -39,10 +39,11 @@ class DeleteCompanyBankLogic extends AbstractControllerLogic /** @var FetchesCompanyBank */ private $fetchesCompanyBank; + /** - * UpdateStandardSegmentConstantLogic constructor. - * @param CanUpdateSegment $canDeleteCompanyBank - * @param UpdatesSegment $deletesSegment + * DeleteCompanyBankLogic constructor. + * @param CanDeleteCompanyBank $canDeleteCompanyBank + * @param DeletesCompanyBank $deletesCompanyBank * @param FetchesCompanyBank $fetchesCompanyBank */ public function __construct( diff --git a/app/Classes/Modules/CompanyBanks/ControllerLogic/UpdateCompanyBankLogic.php b/app/Classes/Modules/CompanyBanks/ControllerLogic/UpdateCompanyBankLogic.php index 3de3bdaa..8f74d5f7 100644 --- a/app/Classes/Modules/CompanyBanks/ControllerLogic/UpdateCompanyBankLogic.php +++ b/app/Classes/Modules/CompanyBanks/ControllerLogic/UpdateCompanyBankLogic.php @@ -39,8 +39,9 @@ class UpdateCompanyBankLogic extends AbstractControllerLogic /** @var FetchesCompanyBank */ private $fetchesCompanyBank; + /** - * UpdateStandardSegmentConstantLogic constructor. + * UpdateCompanyBankLogic constructor. * @param CanUpdateCompanyBank $canUpdateCompanyBank * @param UpdatesCompanyBank $updatesCompanyBank * @param FetchesCompanyBank $fetchesCompanyBank diff --git a/app/Classes/Modules/CompanyBanks/Services/FetchesCompanyBank.php b/app/Classes/Modules/CompanyBanks/Services/FetchesCompanyBank.php index 09e7fbee..669075d2 100644 --- a/app/Classes/Modules/CompanyBanks/Services/FetchesCompanyBank.php +++ b/app/Classes/Modules/CompanyBanks/Services/FetchesCompanyBank.php @@ -13,8 +13,9 @@ class FetchesCompanyBank extends AbstractFetchRecord /** @var CompanyBank */ private $repository; + /** - * FetchesUser constructor. + * FetchesCompanyBank constructor. * @param CompanyBank $repository */ public function __construct(CompanyBank $repository) diff --git a/app/Classes/Modules/CompanyBanks/Standards/Rules/CanUpdateCompanyBank.php b/app/Classes/Modules/CompanyBanks/Standards/Rules/CanUpdateCompanyBank.php index 210cf480..9a8d9a21 100644 --- a/app/Classes/Modules/CompanyBanks/Standards/Rules/CanUpdateCompanyBank.php +++ b/app/Classes/Modules/CompanyBanks/Standards/Rules/CanUpdateCompanyBank.php @@ -13,9 +13,10 @@ class CanUpdateCompanyBank extends AbstractRule /** @var CompanyBankValidation */ private $CompanyBankValidation; + /** - * CanCreateAddress constructor. - * @param CompanyBankValidation $CompanyBankValidation + * CanUpdateCompanyBank constructor. + * @param CompanybankValidation $CompanyBankValidation */ public function __construct(CompanyBankValidation $CompanyBankValidation) { diff --git a/app/Classes/Modules/CompanyEmployees/DataTransferObjects/CompanyEmployeeObject.php b/app/Classes/Modules/CompanyEmployees/DataTransferObjects/CompanyEmployeeObject.php index 501a02c1..9bb6732b 100644 --- a/app/Classes/Modules/CompanyEmployees/DataTransferObjects/CompanyEmployeeObject.php +++ b/app/Classes/Modules/CompanyEmployees/DataTransferObjects/CompanyEmployeeObject.php @@ -12,8 +12,9 @@ class CompanyEmployeeObject implements DataTransferObject /** @var int|null */ private $user_id; + /** - * CompanyObject constructor. + * CompanyEmployeeObject constructor. * @param int|null $company_id * @param int|null $user_id */ diff --git a/app/Classes/Modules/CompanyEmployees/Standards/Rules/CanCreateCompanyEmployee.php b/app/Classes/Modules/CompanyEmployees/Standards/Rules/CanCreateCompanyEmployee.php index fff3f232..d5d66023 100644 --- a/app/Classes/Modules/CompanyEmployees/Standards/Rules/CanCreateCompanyEmployee.php +++ b/app/Classes/Modules/CompanyEmployees/Standards/Rules/CanCreateCompanyEmployee.php @@ -13,8 +13,9 @@ class CanCreateCompanyEmployee extends AbstractRule /** @var CompanyEmployeeValidation */ private $companyEmployeeValidation; + /** - * CanCreateAddress constructor. + * CanCreateCompanyEmployee constructor. * @param CompanyEmployeeValidation $companyEmployeeValidation */ public function __construct(CompanyEmployeeValidation $companyEmployeeValidation) diff --git a/app/Classes/Modules/Contacts/DataTransferObjects/ContactObject.php b/app/Classes/Modules/Contacts/DataTransferObjects/ContactObject.php index 07e37303..3f2dae9f 100644 --- a/app/Classes/Modules/Contacts/DataTransferObjects/ContactObject.php +++ b/app/Classes/Modules/Contacts/DataTransferObjects/ContactObject.php @@ -24,14 +24,15 @@ class ContactObject implements DataTransferObject /** @var string|null */ private $wechat_id; + /** - * CompanyObject constructor. + * ContactObject constructor. * @param int|null $country_id * @param int|null $company_id - * @param string|null $reference - * @param string|null $phone - * @param string|null $email - * @param string|null $wechat_id + * @param null|string $reference + * @param null|string $phone + * @param null|string $email + * @param null|string $wechat_id */ public function __construct( ?int $country_id, diff --git a/app/Classes/Modules/Contacts/Standards/Rules/CanCreateContact.php b/app/Classes/Modules/Contacts/Standards/Rules/CanCreateContact.php index 7e3fb99a..9c739feb 100644 --- a/app/Classes/Modules/Contacts/Standards/Rules/CanCreateContact.php +++ b/app/Classes/Modules/Contacts/Standards/Rules/CanCreateContact.php @@ -13,8 +13,9 @@ class CanCreateContact extends AbstractRule /** @var ContactValidation */ private $contactValidation; + /** - * CanCreateAddress constructor. + * CanCreateContact constructor. * @param ContactValidation $contactValidation */ public function __construct(ContactValidation $contactValidation) diff --git a/app/Classes/Modules/Currencies/ControllerLogic/DeleteCurrencyLogic.php b/app/Classes/Modules/Currencies/ControllerLogic/DeleteCurrencyLogic.php index 85d347ac..6c9f374b 100644 --- a/app/Classes/Modules/Currencies/ControllerLogic/DeleteCurrencyLogic.php +++ b/app/Classes/Modules/Currencies/ControllerLogic/DeleteCurrencyLogic.php @@ -39,10 +39,11 @@ class DeleteCurrencyLogic extends AbstractControllerLogic /** @var FetchesCurrency */ private $fetchesCurrency; + /** - * UpdateStandardSegmentConstantLogic constructor. - * @param CanUpdateSegment $canDeleteCurrency - * @param UpdatesSegment $deletesSegment + * DeleteCurrencyLogic constructor. + * @param CanDeleteCurrency $canDeleteCurrency + * @param DeletesCurrency $deletesCurrency * @param FetchesCurrency $fetchesCurrency */ public function __construct( diff --git a/app/Classes/Modules/Currencies/ControllerLogic/UpdateCurrencyRateLogic.php b/app/Classes/Modules/Currencies/ControllerLogic/UpdateCurrencyRateLogic.php index b63c007e..635e832e 100644 --- a/app/Classes/Modules/Currencies/ControllerLogic/UpdateCurrencyRateLogic.php +++ b/app/Classes/Modules/Currencies/ControllerLogic/UpdateCurrencyRateLogic.php @@ -47,6 +47,7 @@ class UpdateCurrencyRateLogic extends AbstractControllerLogic * UpdateStandardSegmentConstantLogic constructor. * @param CanUpdateCurrency $canUpdateCurrency * @param UpdatesCurrencyRate $updatesCurrencyRate + * @param CreatesCurrencyLog $createsCurrencyLog * @param FetchesCurrency $fetchesCurrency */ public function __construct( diff --git a/app/Classes/Modules/Currencies/DataTransferObjects/CurrencyObject.php b/app/Classes/Modules/Currencies/DataTransferObjects/CurrencyObject.php index 8996824b..66e712b0 100644 --- a/app/Classes/Modules/Currencies/DataTransferObjects/CurrencyObject.php +++ b/app/Classes/Modules/Currencies/DataTransferObjects/CurrencyObject.php @@ -13,12 +13,13 @@ class CurrencyObject implements DataTransferObject private $symbol; private $selling; + /** - * CompanyBankObject constructor. + * CurrencyObject constructor. * @param int|null $country_id - * @param string|null $name - * @param string|null $short_code - * @param string|null $symbol + * @param null|string $name + * @param null|string $short_code + * @param null|string $symbol * @param float|null $selling */ public function __construct( diff --git a/app/Classes/Modules/Currencies/Services/FetchesCurrency.php b/app/Classes/Modules/Currencies/Services/FetchesCurrency.php index f9c475b3..8508471f 100644 --- a/app/Classes/Modules/Currencies/Services/FetchesCurrency.php +++ b/app/Classes/Modules/Currencies/Services/FetchesCurrency.php @@ -13,8 +13,9 @@ class FetchesCurrency extends AbstractFetchRecord /** @var Currency */ private $repository; + /** - * FetchesUser constructor. + * FetchesCurrency constructor. * @param Currency $repository */ public function __construct(Currency $repository) diff --git a/app/Classes/Modules/Currencies/Standards/Rules/CanUpdateCurrency.php b/app/Classes/Modules/Currencies/Standards/Rules/CanUpdateCurrency.php index bb055060..639070f0 100644 --- a/app/Classes/Modules/Currencies/Standards/Rules/CanUpdateCurrency.php +++ b/app/Classes/Modules/Currencies/Standards/Rules/CanUpdateCurrency.php @@ -13,9 +13,10 @@ class CanUpdateCurrency extends AbstractRule /** @var currencyValidation */ private $currencyValidation; + /** - * CanCreateAddress constructor. - * @param CurrencyValidation $CurrencyValidation + * CanUpdateCurrency constructor. + * @param CurrencyValidation $currencyValidation */ public function __construct(CurrencyValidation $currencyValidation) { diff --git a/app/Classes/Modules/Documents/ControllerLogic/ApproveDocumentLogic.php b/app/Classes/Modules/Documents/ControllerLogic/ApproveDocumentLogic.php index c41ab371..3b916ba1 100644 --- a/app/Classes/Modules/Documents/ControllerLogic/ApproveDocumentLogic.php +++ b/app/Classes/Modules/Documents/ControllerLogic/ApproveDocumentLogic.php @@ -41,8 +41,9 @@ class ApproveDocumentLogic extends AbstractControllerLogic /** @var FetchesDocument */ private $fetchesDocument; + /** - * UpdateStandardSegmentConstantLogic constructor. + * ApproveDocumentLogic constructor. * @param CanUpdateDocument $canUpdateDocument * @param ApprovesDocument $approvesDocument * @param FetchesDocument $fetchesDocument diff --git a/app/Classes/Modules/Documents/ControllerLogic/ListDocumentLogic.php b/app/Classes/Modules/Documents/ControllerLogic/ListDocumentLogic.php index 25049850..9f293067 100644 --- a/app/Classes/Modules/Documents/ControllerLogic/ListDocumentLogic.php +++ b/app/Classes/Modules/Documents/ControllerLogic/ListDocumentLogic.php @@ -30,8 +30,9 @@ class ListDocumentLogic extends AbstractControllerLogic /** @var ListsDocuments */ private $listsDocuments; + /** - * ListStandardSegmentLogic constructor. + * ListDocumentLogic constructor. * @param CanListDocuments $canListDocuments * @param ListsDocuments $listsDocuments */ diff --git a/app/Classes/Modules/Documents/DataTransferObjects/DocumentObject.php b/app/Classes/Modules/Documents/DataTransferObjects/DocumentObject.php index 2510f084..e4932b42 100644 --- a/app/Classes/Modules/Documents/DataTransferObjects/DocumentObject.php +++ b/app/Classes/Modules/Documents/DataTransferObjects/DocumentObject.php @@ -35,12 +35,15 @@ class DocumentObject implements DataTransferObject /** * CompanyObject constructor. - * @param int|null $country_id - * @param int|null $company_id + * @param int|null $owner_id + * @param int|null $owner_type + * @param null|string $document_type * @param string|null $reference - * @param string|null $phone - * @param string|null $email - * @param string|null $wechat_id + * @param int|null $status + * @param int|null $approved_by + * @param timestamp|null $issued_date + * @param timestamp|null $expired_date + * @param timestamp|null $approved_date */ public function __construct( ?int $owner_id, diff --git a/app/Classes/Modules/Documents/DataTransferObjects/FileObject.php b/app/Classes/Modules/Documents/DataTransferObjects/FileObject.php index 112ed3e1..e4d205a5 100644 --- a/app/Classes/Modules/Documents/DataTransferObjects/FileObject.php +++ b/app/Classes/Modules/Documents/DataTransferObjects/FileObject.php @@ -18,7 +18,7 @@ class FileObject implements DataTransferObject /** * CompanyObject constructor. * @param int|null $document_id - * @param text|null $file + * @param null|string $file * @param string|null $file_type */ public function __construct( diff --git a/app/Classes/Modules/Documents/Services/Convert64ToFile.php b/app/Classes/Modules/Documents/Services/Convert64ToFile.php index 1976433d..611e6a47 100644 --- a/app/Classes/Modules/Documents/Services/Convert64ToFile.php +++ b/app/Classes/Modules/Documents/Services/Convert64ToFile.php @@ -9,6 +9,7 @@ class Convert64ToFile { /** * @param array|null file_set + * @return array|bool */ public function convert($file_set = [], $path = 'file') { diff --git a/app/Classes/Modules/Documents/Services/FetchesDocument.php b/app/Classes/Modules/Documents/Services/FetchesDocument.php index 1aa12c87..40dbb1c8 100644 --- a/app/Classes/Modules/Documents/Services/FetchesDocument.php +++ b/app/Classes/Modules/Documents/Services/FetchesDocument.php @@ -13,8 +13,9 @@ class FetchesDocument extends AbstractFetchRecord /** @var Document */ private $repository; + /** - * FetchesUser constructor. + * FetchesDocument constructor. * @param Document $repository */ public function __construct(Document $repository) diff --git a/app/Classes/Modules/Documents/Standards/Rules/CanCreateDocument.php b/app/Classes/Modules/Documents/Standards/Rules/CanCreateDocument.php index abac99e3..ed5263a5 100644 --- a/app/Classes/Modules/Documents/Standards/Rules/CanCreateDocument.php +++ b/app/Classes/Modules/Documents/Standards/Rules/CanCreateDocument.php @@ -13,8 +13,9 @@ class CanCreateDocument extends AbstractRule /** @var DocumentValidation */ private $documentValidation; + /** - * CanCreateAddress constructor. + * CanCreateDocument constructor. * @param DocumentValidation $documentValidation */ public function __construct(DocumentValidation $documentValidation) diff --git a/app/Classes/Modules/Documents/Standards/Rules/CanUpdateDocument.php b/app/Classes/Modules/Documents/Standards/Rules/CanUpdateDocument.php index f07fb166..dc0a2bfc 100644 --- a/app/Classes/Modules/Documents/Standards/Rules/CanUpdateDocument.php +++ b/app/Classes/Modules/Documents/Standards/Rules/CanUpdateDocument.php @@ -13,8 +13,9 @@ class CanUpdateDocument extends AbstractRule /** @var DocumentValidation */ private $documentValidation; + /** - * CanCreateAddress constructor. + * CanUpdateDocument constructor. * @param DocumentValidation $documentValidation */ public function __construct(DocumentValidation $documentValidation) diff --git a/app/Classes/Modules/SegmentCompanies/DataTransferObjects/SegmentCompanyObject.php b/app/Classes/Modules/SegmentCompanies/DataTransferObjects/SegmentCompanyObject.php index 023d4f57..fc7c5386 100644 --- a/app/Classes/Modules/SegmentCompanies/DataTransferObjects/SegmentCompanyObject.php +++ b/app/Classes/Modules/SegmentCompanies/DataTransferObjects/SegmentCompanyObject.php @@ -12,8 +12,9 @@ class SegmentCompanyObject implements DataTransferObject /** @var int|null */ private $company_id; + /** - * CompanyObject constructor. + * SegmentCompanyObject constructor. * @param int|null $segment_id * @param int|null $company_id */ diff --git a/app/Classes/Modules/SegmentCompanies/Standards/Rules/CanCreateSegmentCompany.php b/app/Classes/Modules/SegmentCompanies/Standards/Rules/CanCreateSegmentCompany.php index 2670467e..016066e4 100644 --- a/app/Classes/Modules/SegmentCompanies/Standards/Rules/CanCreateSegmentCompany.php +++ b/app/Classes/Modules/SegmentCompanies/Standards/Rules/CanCreateSegmentCompany.php @@ -13,8 +13,9 @@ class CanCreateSegmentCompany extends AbstractRule /** @var SegmentCompanyValidation */ private $segmentCompanyValidation; + /** - * CanCreateAddress constructor. + * CanCreateSegmentCompany constructor. * @param SegmentCompanyValidation $segmentCompanyValidation */ public function __construct(SegmentCompanyValidation $segmentCompanyValidation) diff --git a/app/Classes/Modules/SegmentConstants/ControllerLogic/CreateSegmentConstantLogic.php b/app/Classes/Modules/SegmentConstants/ControllerLogic/CreateSegmentConstantLogic.php index eaa27140..990e7be6 100644 --- a/app/Classes/Modules/SegmentConstants/ControllerLogic/CreateSegmentConstantLogic.php +++ b/app/Classes/Modules/SegmentConstants/ControllerLogic/CreateSegmentConstantLogic.php @@ -43,10 +43,11 @@ class CreateSegmentConstantLogic extends AbstractControllerLogic /** @var FetchesSegment */ private $fetchesSegment; + /** * CreateSegmentConstantLogic constructor. * @param CanCreateSegmentConstant $canCreateSegmentConstant - * @param createsSegmentConstant $createsSegmentConstantTax + * @param CreatesSegmentConstant $createsSegmentConstant * @param FetchesSegmentConstant $fetchesSegmentConstant * @param FetchesSegment $fetchesSegment */ diff --git a/app/Classes/Modules/SegmentConstants/DataTransferObjects/SegmentConstantObject.php b/app/Classes/Modules/SegmentConstants/DataTransferObjects/SegmentConstantObject.php index e80f7c49..0d8c6ce8 100644 --- a/app/Classes/Modules/SegmentConstants/DataTransferObjects/SegmentConstantObject.php +++ b/app/Classes/Modules/SegmentConstants/DataTransferObjects/SegmentConstantObject.php @@ -23,7 +23,7 @@ class SegmentConstantObject implements DataTransferObject /** * SegmentConstantObject constructor. - * @param string|null $segment_id + * @param int|null $segment_id * @param string|null $name * @param string|null $reference * @param string|null $type diff --git a/app/Classes/Modules/SegmentConstants/Standards/Rules/CanUpdateSegmentConstant.php b/app/Classes/Modules/SegmentConstants/Standards/Rules/CanUpdateSegmentConstant.php index 07831082..2e1fa8a8 100644 --- a/app/Classes/Modules/SegmentConstants/Standards/Rules/CanUpdateSegmentConstant.php +++ b/app/Classes/Modules/SegmentConstants/Standards/Rules/CanUpdateSegmentConstant.php @@ -14,7 +14,7 @@ class CanUpdateSegmentConstant extends AbstractRule private $segmentConstantValidation; /** - * CanCreateAddress constructor. + * CanUpdateSegmentConstant constructor. * @param SegmentConstantValidation $segmentConstantValidation */ public function __construct(SegmentConstantValidation $segmentConstantValidation) diff --git a/app/Classes/Modules/SegmentConstants/Standards/Rules/CanUpdateStandardSegmentConstant.php b/app/Classes/Modules/SegmentConstants/Standards/Rules/CanUpdateStandardSegmentConstant.php index daee97ba..678c7987 100644 --- a/app/Classes/Modules/SegmentConstants/Standards/Rules/CanUpdateStandardSegmentConstant.php +++ b/app/Classes/Modules/SegmentConstants/Standards/Rules/CanUpdateStandardSegmentConstant.php @@ -13,8 +13,9 @@ class CanUpdateStandardSegmentConstant extends AbstractRule /** @var SegmentConstantValidation */ private $segmentConstantValidation; + /** - * CanCreateAddress constructor. + * CanUpdateStandardSegmentConstant constructor. * @param SegmentConstantValidation $segmentConstantValidation */ public function __construct(SegmentConstantValidation $segmentConstantValidation) diff --git a/app/Classes/Modules/Segments/ControllerLogic/DeleteSegmentLogic.php b/app/Classes/Modules/Segments/ControllerLogic/DeleteSegmentLogic.php index 24284c29..47c4f14a 100644 --- a/app/Classes/Modules/Segments/ControllerLogic/DeleteSegmentLogic.php +++ b/app/Classes/Modules/Segments/ControllerLogic/DeleteSegmentLogic.php @@ -10,7 +10,6 @@ use App\Classes\Modules\Segments\Services\FetchesSegment; use App\Classes\Modules\Segments\Standards\Rules\CanDeleteSegment; use App\Classes\Modules\Segments\Services\DeletesSegment; -use App\Classes\Modules\Segments\DataTransferObjects\SegmentObject; use ErrorException; use Illuminate\Http\JsonResponse; @@ -39,10 +38,11 @@ class DeleteSegmentLogic extends AbstractControllerLogic /** @var FetchesSegment */ private $fetchesSegment; + /** - * UpdateStandardSegmentConstantLogic constructor. - * @param CanUpdateSegment $canDeleteSegment - * @param UpdatesSegment $deletesSegment + * DeleteSegmentLogic constructor. + * @param CanDeleteSegment $canDeleteSegment + * @param DeletesSegment $deletesSegment * @param FetchesSegment $fetchesSegment */ public function __construct( diff --git a/app/Classes/Modules/Segments/ControllerLogic/UpdateSegmentLogic.php b/app/Classes/Modules/Segments/ControllerLogic/UpdateSegmentLogic.php index 8ce9038d..43eaa54e 100644 --- a/app/Classes/Modules/Segments/ControllerLogic/UpdateSegmentLogic.php +++ b/app/Classes/Modules/Segments/ControllerLogic/UpdateSegmentLogic.php @@ -39,8 +39,9 @@ class UpdateSegmentLogic extends AbstractControllerLogic /** @var FetchesSegment */ private $fetchesSegment; + /** - * UpdateStandardSegmentConstantLogic constructor. + * UpdateSegmentLogic constructor. * @param CanUpdateSegment $canUpdateSegment * @param UpdatesSegment $updatesSegment * @param FetchesSegment $fetchesSegment diff --git a/app/Classes/Modules/Segments/Services/FetchesSegment.php b/app/Classes/Modules/Segments/Services/FetchesSegment.php index 25e5dbbe..f76580f9 100644 --- a/app/Classes/Modules/Segments/Services/FetchesSegment.php +++ b/app/Classes/Modules/Segments/Services/FetchesSegment.php @@ -13,8 +13,9 @@ class FetchesSegment extends AbstractFetchRecord /** @var Segment */ private $repository; + /** - * FetchesUser constructor. + * FetchesSegment constructor. * @param Segment $repository */ public function __construct(Segment $repository) diff --git a/app/Classes/Modules/Segments/Standards/Rules/CanUpdateSegment.php b/app/Classes/Modules/Segments/Standards/Rules/CanUpdateSegment.php index ed01004a..026ca4c6 100644 --- a/app/Classes/Modules/Segments/Standards/Rules/CanUpdateSegment.php +++ b/app/Classes/Modules/Segments/Standards/Rules/CanUpdateSegment.php @@ -13,8 +13,9 @@ class CanUpdateSegment extends AbstractRule /** @var SegmentValidation */ private $segmentValidation; + /** - * CanCreateAddress constructor. + * CanUpdateSegment constructor. * @param SegmentValidation $segmentValidation */ public function __construct(SegmentValidation $segmentValidation) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreateTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreateTransactionLogic.php index fef47022..2984dd61 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreateTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreateTransactionLogic.php @@ -56,11 +56,17 @@ class CreateTransactionLogic extends AbstractControllerLogic private $canCreateTransactionDetail; private $createsTransactionDetail; + /** * CreateWalletLogic constructor. - * @param CreatesWallet $createsWallet - * @param GeneratesWalletCode $generatesWalletCode - * @param CanCreateCompanyWallet $canCreateCompanyWallet + * @param GeneratesTransactionBillNo $generatesTransactionBillNo + * @param CanCreateTransaction $canCreateTransaction + * @param FetchesCurrency $fetchesCurrency + * @param RateCalculatesCurrency $rateCalculatesCurrency + * @param FetchesCompany $fetchesCompany + * @param CreatesTransaction $createsTransaction + * @param CanCreateTransactionDetail $canCreateTransactionDetail + * @param CreatesTransactionDetail $createsTransactionDetail */ public function __construct( GeneratesTransactionBillNo $generatesTransactionBillNo, CanCreateTransaction $canCreateTransaction, diff --git a/app/Classes/Modules/Wallets/ControllersLogic/CreateWalletTransactionLogic.php b/app/Classes/Modules/Wallets/ControllersLogic/CreateWalletTransactionLogic.php index ecaf36f6..ec5c003e 100644 --- a/app/Classes/Modules/Wallets/ControllersLogic/CreateWalletTransactionLogic.php +++ b/app/Classes/Modules/Wallets/ControllersLogic/CreateWalletTransactionLogic.php @@ -71,9 +71,12 @@ class CreateWalletTransactionLogic extends AbstractControllerLogic /** * CreateWalletLogic constructor. - * @param CreatesWallet $createsWallet - * @param GeneratesWalletCode $generatesWalletCode - * @param CanCreateCompanyWallet $canCreateCompanyWallet + * @param CreatesWalletTransaction $createsWalletTransaction + * @param GeneratesWalletTransactionBillNo $generatesWalletTransactionBillNo + * @param CanCreateWalletTransaction $canCreateWalletTransaction + * @param FetchesCurrency $fetchesCurrency + * @param RateCalculatesCurrency $rateCalculatesCurrency + * @param FetchesWallet $fetchesWallet */ public function __construct( CreatesWalletTransaction $createsWalletTransaction, GeneratesWalletTransactionBillNo $generatesWalletTransactionBillNo, CanCreateWalletTransaction $canCreateWalletTransaction, diff --git a/app/Classes/Modules/Wallets/Services/ChecksIfWalletCodeExists.php b/app/Classes/Modules/Wallets/Services/ChecksIfWalletCodeExists.php index 4efedc38..4d00540a 100644 --- a/app/Classes/Modules/Wallets/Services/ChecksIfWalletCodeExists.php +++ b/app/Classes/Modules/Wallets/Services/ChecksIfWalletCodeExists.php @@ -11,9 +11,10 @@ class ChecksIfWalletCodeExists /** @var wallet */ private $repository; + /** - * ChecksIfAccountNumberExists constructor. - * @param wallet $repository + * ChecksIfWalletCodeExists constructor. + * @param Wallet $repository */ public function __construct(wallet $repository) { diff --git a/app/Classes/Modules/Wallets/Services/FetchesWallet.php b/app/Classes/Modules/Wallets/Services/FetchesWallet.php index 48677e4c..1c7800ac 100644 --- a/app/Classes/Modules/Wallets/Services/FetchesWallet.php +++ b/app/Classes/Modules/Wallets/Services/FetchesWallet.php @@ -13,9 +13,10 @@ class FetchesWallet extends AbstractFetchRecord /** @var Currency */ private $repository; + /** - * FetchesUser constructor. - * @param Currency $repository + * FetchesWallet constructor. + * @param Wallet $repository */ public function __construct(Wallet $repository) { diff --git a/app/Classes/ValueObjects/Response/ApiResponseObject.php b/app/Classes/ValueObjects/Response/ApiResponseObject.php index a63c6efb..c5a9a758 100644 --- a/app/Classes/ValueObjects/Response/ApiResponseObject.php +++ b/app/Classes/ValueObjects/Response/ApiResponseObject.php @@ -21,13 +21,12 @@ class ApiResponseObject private $data; - /** * ApiResponseObject constructor. * @param string $title * @param string $message * @param int $statusCode - * @param array|null $data + * @param array $data */ public function __construct(string $title, string $message, int $statusCode, array $data = []) {