for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* (c) Soeren Martius
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SoerenMartius\Component\Wishlist\Manager;
use SoerenMartius\Component\Wishlist\Model\WishlistInterface;
/**
* @author Soeren Martius <[email protected]>
abstract class AbstractWishlistManager implements
WishlistManagerInterface,
ManagerInterface
{
* {@inheritdoc}
public function findWishlistById($id)
return $this->findWishlistBy(['id' => $id]);
}
public function findWishlistBySharingCode(string $sharingCode)
return $this->findWishlistBy(['sharingCode' => $sharingCode]);
public function createWishlist(): WishlistInterface
$class = $this->getClass();
$wishlist = new $class();
return $wishlist;