generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
764 additions
and
32 deletions.
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
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,11 @@ | ||
# Macro Repository | ||
|
||
```php | ||
use Innobrain\OnOfficeAdapter\Facades\MacroRepository; | ||
|
||
$resolvedText = MacroRepository::query() | ||
->text('_Name, _Vorname') | ||
->addressIds(1) | ||
->resolve(); | ||
|
||
``` |
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,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Innobrain\OnOfficeAdapter\Dtos; | ||
|
||
readonly class OnOfficeApiCredentials | ||
{ | ||
public function __construct( | ||
public string $token, | ||
public string $secret, | ||
public string $apiClaim = '' | ||
) {} | ||
} |
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,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Innobrain\OnOfficeAdapter\Facades; | ||
|
||
use Innobrain\OnOfficeAdapter\Dtos\OnOfficeResponse; | ||
use Innobrain\OnOfficeAdapter\Dtos\OnOfficeResponsePage; | ||
use Innobrain\OnOfficeAdapter\Query\MacroBuilder; | ||
use Innobrain\OnOfficeAdapter\Repositories\MacroRepository as RootRepository; | ||
|
||
/** | ||
* @see RootRepository | ||
* | ||
* @method static MacroBuilder query() | ||
*/ | ||
class MacroRepository extends BaseRepository | ||
{ | ||
public static function fake(OnOfficeResponsePage|OnOfficeResponse|array|null $stubCallables): RootRepository | ||
{ | ||
return tap(static::getFacadeRoot(), static function (RootRepository $fake) use ($stubCallables) { | ||
$fake->fake($stubCallables); | ||
}); | ||
} | ||
|
||
protected static function getFacadeAccessor(): string | ||
{ | ||
return RootRepository::class; | ||
} | ||
} |
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
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
Oops, something went wrong.