-
Notifications
You must be signed in to change notification settings - Fork 62
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
1 parent
9092141
commit a900400
Showing
10 changed files
with
150 additions
and
162 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 was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
src/Command/Wishlist/ExportSelectedProductsFromWishlistToPdf.php
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,36 @@ | ||
<?php | ||
|
||
/* | ||
* This file was created by developers working at BitBag | ||
* Do you need more information about us and what we do? Visit our https://bitbag.io website! | ||
* We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace BitBag\SyliusWishlistPlugin\Command\Wishlist; | ||
|
||
use Doctrine\Common\Collections\ArrayCollection; | ||
use Symfony\Component\HttpFoundation\Request; | ||
|
||
final class ExportSelectedProductsFromWishlistToPdf implements ExportSelectedProductsFromWishlistToPdfInterface | ||
{ | ||
private Request $request; | ||
private ArrayCollection $wishlistProducts; | ||
|
||
public function __construct(ArrayCollection $wishlistProducts, Request $request) | ||
{ | ||
$this->wishlistProducts = $wishlistProducts; | ||
$this->request = $request; | ||
} | ||
|
||
public function getWishlistProducts(): ?ArrayCollection | ||
{ | ||
return $this->wishlistProducts; | ||
} | ||
|
||
public function getRequest(): Request | ||
{ | ||
return $this->request; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Command/Wishlist/ExportSelectedProductsFromWishlistToPdfInterface.php
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,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace BitBag\SyliusWishlistPlugin\Command\Wishlist; | ||
|
||
use Doctrine\Common\Collections\ArrayCollection; | ||
use Symfony\Component\HttpFoundation\Request; | ||
|
||
interface ExportSelectedProductsFromWishlistToPdfInterface | ||
{ | ||
public function getWishlistProducts(): ?ArrayCollection; | ||
|
||
public function getRequest(): Request; | ||
} |
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.