Skip to content

Commit

Permalink
Merge branch 'feature/rename'
Browse files Browse the repository at this point in the history
  • Loading branch information
mschadegg committed Jan 4, 2024
2 parents 6f90a72 + 31b730a commit e84f6b0
Show file tree
Hide file tree
Showing 66 changed files with 311 additions and 311 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ composer require morningtrain/economic
## Usage

```php
$skeleton = new MorningTrain\Economic();
echo $skeleton->echoPhrase('Hello, MorningTrain!');
$skeleton = new Morningtrain\Economic();
echo $skeleton->echoPhrase('Hello, Morningtrain!');
```

## Testing
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"autoload": {
"psr-4": {
"MorningTrain\\Economic\\": "src"
"Morningtrain\\Economic\\": "src"
}
},
"autoload-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Abstracts/Endpoint.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MorningTrain\Economic\Abstracts;
namespace Morningtrain\Economic\Abstracts;

abstract class Endpoint
{
Expand Down
14 changes: 7 additions & 7 deletions src/Abstracts/Resource.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace MorningTrain\Economic\Abstracts;
namespace Morningtrain\Economic\Abstracts;

use Exception;
use MorningTrain\Economic\Attributes\Resources\GetSingle;
use MorningTrain\Economic\Attributes\Resources\Properties\PrimaryKey;
use MorningTrain\Economic\Attributes\Resources\Properties\ResourceType;
use MorningTrain\Economic\Classes\EconomicCollection;
use MorningTrain\Economic\Classes\EconomicCollectionIterator;
use MorningTrain\Economic\Services\EconomicLoggerService;
use Morningtrain\Economic\Attributes\Resources\GetSingle;
use Morningtrain\Economic\Attributes\Resources\Properties\PrimaryKey;
use Morningtrain\Economic\Attributes\Resources\Properties\ResourceType;
use Morningtrain\Economic\Classes\EconomicCollection;
use Morningtrain\Economic\Classes\EconomicCollectionIterator;
use Morningtrain\Economic\Services\EconomicLoggerService;
use ReflectionClass;
use ReflectionMethod;

Expand Down
4 changes: 2 additions & 2 deletions src/Attributes/Resources/Create.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MorningTrain\Economic\Attributes\Resources;
namespace Morningtrain\Economic\Attributes\Resources;

use Attribute;
use MorningTrain\Economic\Abstracts\Endpoint;
use Morningtrain\Economic\Abstracts\Endpoint;

#[Attribute(Attribute::TARGET_CLASS)] class Create extends Endpoint
{
Expand Down
4 changes: 2 additions & 2 deletions src/Attributes/Resources/Delete.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MorningTrain\Economic\Attributes\Resources;
namespace Morningtrain\Economic\Attributes\Resources;

use Attribute;
use MorningTrain\Economic\Abstracts\Endpoint;
use Morningtrain\Economic\Abstracts\Endpoint;

#[Attribute(Attribute::TARGET_CLASS)] class Delete extends Endpoint
{
Expand Down
4 changes: 2 additions & 2 deletions src/Attributes/Resources/GetCollection.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MorningTrain\Economic\Attributes\Resources;
namespace Morningtrain\Economic\Attributes\Resources;

use Attribute;
use MorningTrain\Economic\Abstracts\Endpoint;
use Morningtrain\Economic\Abstracts\Endpoint;

#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] class GetCollection extends Endpoint
{
Expand Down
4 changes: 2 additions & 2 deletions src/Attributes/Resources/GetSingle.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MorningTrain\Economic\Attributes\Resources;
namespace Morningtrain\Economic\Attributes\Resources;

use Attribute;
use MorningTrain\Economic\Abstracts\Endpoint;
use Morningtrain\Economic\Abstracts\Endpoint;

#[Attribute(Attribute::TARGET_CLASS)] class GetSingle extends Endpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/Resources/Properties/Filterable.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MorningTrain\Economic\Attributes\Resources\Properties;
namespace Morningtrain\Economic\Attributes\Resources\Properties;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/Resources/Properties/PrimaryKey.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MorningTrain\Economic\Attributes\Resources\Properties;
namespace Morningtrain\Economic\Attributes\Resources\Properties;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/Resources/Properties/Required.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MorningTrain\Economic\Attributes\Resources\Properties;
namespace Morningtrain\Economic\Attributes\Resources\Properties;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/Resources/Properties/ResourceType.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MorningTrain\Economic\Attributes\Resources\Properties;
namespace Morningtrain\Economic\Attributes\Resources\Properties;

use Attribute;

Expand Down
2 changes: 1 addition & 1 deletion src/Attributes/Resources/Properties/Sortable.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MorningTrain\Economic\Attributes\Resources\Properties;
namespace Morningtrain\Economic\Attributes\Resources\Properties;

use Attribute;

Expand Down
4 changes: 2 additions & 2 deletions src/Attributes/Resources/Update.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MorningTrain\Economic\Attributes\Resources;
namespace Morningtrain\Economic\Attributes\Resources;

use Attribute;
use MorningTrain\Economic\Abstracts\Endpoint;
use Morningtrain\Economic\Abstracts\Endpoint;

#[Attribute(Attribute::TARGET_CLASS)] class Update extends Endpoint
{
Expand Down
2 changes: 1 addition & 1 deletion src/Classes/EconomicCollection.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MorningTrain\Economic\Classes;
namespace Morningtrain\Economic\Classes;

use Illuminate\Support\LazyCollection;

Expand Down
6 changes: 3 additions & 3 deletions src/Classes/EconomicCollectionIterator.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace MorningTrain\Economic\Classes;
namespace Morningtrain\Economic\Classes;

use ArrayAccess;
use Countable;
use MorningTrain\Economic\Abstracts\Resource;
use MorningTrain\Economic\Services\EconomicApiService;
use Morningtrain\Economic\Abstracts\Resource;
use Morningtrain\Economic\Services\EconomicApiService;
use SeekableIterator;

class EconomicCollectionIterator implements ArrayAccess, Countable, SeekableIterator
Expand Down
8 changes: 4 additions & 4 deletions src/Classes/EconomicQueryBuilder.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace MorningTrain\Economic\Classes;
namespace Morningtrain\Economic\Classes;

use Closure;
use MorningTrain\Economic\Abstracts\Endpoint;
use MorningTrain\Economic\Attributes\Resources\GetCollection;
use MorningTrain\Economic\Services\EconomicApiService;
use Morningtrain\Economic\Abstracts\Endpoint;
use Morningtrain\Economic\Attributes\Resources\GetCollection;
use Morningtrain\Economic\Services\EconomicApiService;

/**
* @template ResourceClass
Expand Down
2 changes: 1 addition & 1 deletion src/Classes/EconomicQueryFilterBuilder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MorningTrain\Economic\Classes;
namespace Morningtrain\Economic\Classes;

use Closure;

Expand Down
8 changes: 4 additions & 4 deletions src/Classes/EconomicRelatedResource.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace MorningTrain\Economic\Classes;
namespace Morningtrain\Economic\Classes;

use Exception;
use MorningTrain\Economic\Abstracts\Endpoint;
use MorningTrain\Economic\Abstracts\Resource;
use MorningTrain\Economic\Services\EconomicApiService;
use Morningtrain\Economic\Abstracts\Endpoint;
use Morningtrain\Economic\Abstracts\Resource;
use Morningtrain\Economic\Services\EconomicApiService;

/**
* @template R of Resource
Expand Down
2 changes: 1 addition & 1 deletion src/Classes/EconomicResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MorningTrain\Economic\Classes;
namespace Morningtrain\Economic\Classes;

class EconomicResponse
{
Expand Down
4 changes: 2 additions & 2 deletions src/DTOs/Attention.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace MorningTrain\Economic\DTOs;
namespace Morningtrain\Economic\DTOs;

use MorningTrain\Economic\Abstracts\Resource;
use Morningtrain\Economic\Abstracts\Resource;

class Attention extends Resource
{
Expand Down
6 changes: 3 additions & 3 deletions src/DTOs/Recipient.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MorningTrain\Economic\DTOs;
namespace Morningtrain\Economic\DTOs;

use MorningTrain\Economic\Abstracts\Resource;
use MorningTrain\Economic\Resources\VatZone;
use Morningtrain\Economic\Abstracts\Resource;
use Morningtrain\Economic\Resources\VatZone;

class Recipient extends Resource
{
Expand Down
2 changes: 1 addition & 1 deletion src/EconomicClass.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MorningTrain\Economic;
namespace Morningtrain\Economic;

class EconomicClass
{
Expand Down
2 changes: 1 addition & 1 deletion src/Enums/PaymentTermsType.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MorningTrain\Economic\Enums;
namespace Morningtrain\Economic\Enums;

enum PaymentTermsType: string
{
Expand Down
4 changes: 2 additions & 2 deletions src/Interfaces/EconomicDriver.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace MorningTrain\Economic\Interfaces;
namespace Morningtrain\Economic\Interfaces;

use MorningTrain\Economic\Classes\EconomicResponse;
use Morningtrain\Economic\Classes\EconomicResponse;

interface EconomicDriver
{
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/Account.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace MorningTrain\Economic\Resources;
namespace Morningtrain\Economic\Resources;

use MorningTrain\Economic\Abstracts\Resource;
use Morningtrain\Economic\Abstracts\Resource;

class Account extends Resource
{
Expand Down
34 changes: 17 additions & 17 deletions src/Resources/AccountingYear.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<?php

namespace MorningTrain\Economic\Resources;
namespace Morningtrain\Economic\Resources;

use Datetime;
use MorningTrain\Economic\Abstracts\Resource;
use MorningTrain\Economic\Attributes\Resources\Create;
use MorningTrain\Economic\Attributes\Resources\GetCollection;
use MorningTrain\Economic\Attributes\Resources\GetSingle;
use MorningTrain\Economic\Attributes\Resources\Properties\Filterable;
use MorningTrain\Economic\Attributes\Resources\Properties\Required;
use MorningTrain\Economic\Attributes\Resources\Properties\ResourceType;
use MorningTrain\Economic\Attributes\Resources\Properties\Sortable;
use MorningTrain\Economic\Classes\EconomicCollection;
use MorningTrain\Economic\Resources\AccountingYear\Entry;
use MorningTrain\Economic\Resources\AccountingYear\Period;
use MorningTrain\Economic\Resources\AccountingYear\Total;
use MorningTrain\Economic\Resources\AccountingYear\Voucher;
use MorningTrain\Economic\Traits\Resources\Creatable;
use MorningTrain\Economic\Traits\Resources\GetCollectionable;
use MorningTrain\Economic\Traits\Resources\GetSingleable;
use Morningtrain\Economic\Abstracts\Resource;
use Morningtrain\Economic\Attributes\Resources\Create;
use Morningtrain\Economic\Attributes\Resources\GetCollection;
use Morningtrain\Economic\Attributes\Resources\GetSingle;
use Morningtrain\Economic\Attributes\Resources\Properties\Filterable;
use Morningtrain\Economic\Attributes\Resources\Properties\Required;
use Morningtrain\Economic\Attributes\Resources\Properties\ResourceType;
use Morningtrain\Economic\Attributes\Resources\Properties\Sortable;
use Morningtrain\Economic\Classes\EconomicCollection;
use Morningtrain\Economic\Resources\AccountingYear\Entry;
use Morningtrain\Economic\Resources\AccountingYear\Period;
use Morningtrain\Economic\Resources\AccountingYear\Total;
use Morningtrain\Economic\Resources\AccountingYear\Voucher;
use Morningtrain\Economic\Traits\Resources\Creatable;
use Morningtrain\Economic\Traits\Resources\GetCollectionable;
use Morningtrain\Economic\Traits\Resources\GetSingleable;

#[GetCollection('accounting-years')]
#[GetSingle('accounting-years/:accountingYear')]
Expand Down
6 changes: 3 additions & 3 deletions src/Resources/AccountingYear/Entry.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace MorningTrain\Economic\Resources\AccountingYear;
namespace Morningtrain\Economic\Resources\AccountingYear;

use MorningTrain\Economic\Abstracts\Resource;
use MorningTrain\Economic\Resources\Account;
use Morningtrain\Economic\Abstracts\Resource;
use Morningtrain\Economic\Resources\Account;

class Entry extends Resource
{
Expand Down
22 changes: 11 additions & 11 deletions src/Resources/AccountingYear/Period.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php

namespace MorningTrain\Economic\Resources\AccountingYear;
namespace Morningtrain\Economic\Resources\AccountingYear;

use DateTime;
use MorningTrain\Economic\Abstracts\Resource;
use MorningTrain\Economic\Attributes\Resources\GetCollection;
use MorningTrain\Economic\Attributes\Resources\GetSingle;
use MorningTrain\Economic\Attributes\Resources\Properties\Filterable;
use MorningTrain\Economic\Attributes\Resources\Properties\ResourceType;
use MorningTrain\Economic\Attributes\Resources\Properties\Sortable;
use MorningTrain\Economic\Classes\EconomicCollection;
use MorningTrain\Economic\Resources\AccountingYear;
use MorningTrain\Economic\Traits\Resources\GetCollectionable;
use MorningTrain\Economic\Traits\Resources\GetSingleable;
use Morningtrain\Economic\Abstracts\Resource;
use Morningtrain\Economic\Attributes\Resources\GetCollection;
use Morningtrain\Economic\Attributes\Resources\GetSingle;
use Morningtrain\Economic\Attributes\Resources\Properties\Filterable;
use Morningtrain\Economic\Attributes\Resources\Properties\ResourceType;
use Morningtrain\Economic\Attributes\Resources\Properties\Sortable;
use Morningtrain\Economic\Classes\EconomicCollection;
use Morningtrain\Economic\Resources\AccountingYear;
use Morningtrain\Economic\Traits\Resources\GetCollectionable;
use Morningtrain\Economic\Traits\Resources\GetSingleable;

#[GetCollection('accounting-years/:accountingYear/periods')]
#[GetSingle('accounting-years/:accountingYear/periods/:accountingYearPeriod', ':accountingYearPeriod')]
Expand Down
14 changes: 7 additions & 7 deletions src/Resources/AccountingYear/Total.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

namespace MorningTrain\Economic\Resources\AccountingYear;
namespace Morningtrain\Economic\Resources\AccountingYear;

use DateTime;
use Exception;
use MorningTrain\Economic\Abstracts\Resource;
use MorningTrain\Economic\Attributes\Resources\GetCollection;
use MorningTrain\Economic\Attributes\Resources\GetSingle;
use MorningTrain\Economic\Classes\EconomicQueryBuilder;
use MorningTrain\Economic\Resources\Account;
use MorningTrain\Economic\Traits\Resources\EndpointResolvable;
use Morningtrain\Economic\Abstracts\Resource;
use Morningtrain\Economic\Attributes\Resources\GetCollection;
use Morningtrain\Economic\Attributes\Resources\GetSingle;
use Morningtrain\Economic\Classes\EconomicQueryBuilder;
use Morningtrain\Economic\Resources\Account;
use Morningtrain\Economic\Traits\Resources\EndpointResolvable;

#[GetCollection('accounting-years/:accountingYear/totals')]
#[GetSingle('accounting-years/:accountingYear/periods/:accountingYearPeriod/totals')]
Expand Down
Loading

0 comments on commit e84f6b0

Please sign in to comment.