This commit is contained in:
2026-02-04 14:16:30 +03:00
commit 9c6adf8b73
40 changed files with 888 additions and 0 deletions
+78
View File
@@ -0,0 +1,78 @@
<?php
namespace Bx\Discount\Collection;
use Wt\Core\Collection\AEntityCollection;
use Bx\Discount\Entity\DiscountEntity;
class DiscountCollection extends AEntityCollection
{
/**
* @param $xmlId
* @return DiscountEntity
* @deprecated
*/
public function &getByXmlId($xmlId)
{
return parent::getByXmlId($xmlId);
}
/**
* @param $id
* @param null $default
* @return DiscountEntity|null
*/
public function &get($id, $default = null)
{
return parent::get($id, $default); // TODO: Change the autogenerated stub
}
/**
* @return DiscountEntity
*/
public function &first(callable $callback = null, $default = null)
{
return parent::first($callback, $default); // TODO: Change the autogenerated stub
}
/**
* @return DiscountEntity
*/
public function &last()
{
return parent::last(); // TODO: Change the autogenerated stub
}
/**
* @return DiscountEntity
*/
public function shift()
{
return parent::shift(); // TODO: Change the autogenerated stub
}
/**
* @return DiscountEntity
*/
public function pop()
{
return parent::pop(); // TODO: Change the autogenerated stub
}
/**
* @return DiscountCollection|DiscountEntity[]
*/
public function filter($callback = null)
{
return parent::filter($callback); // TODO: Change the autogenerated stub
}
/**
* @return DiscountEntity[]
*/
public function all()
{
return parent::all(); // TODO: Change the autogenerated stub
}
}