This commit is contained in:
2025-03-19 04:49:12 +03:00
parent 218eeff1ad
commit 1ab56ef3c4
13 changed files with 14 additions and 20 deletions
+71
View File
@@ -0,0 +1,71 @@
<?php
namespace Bx\Nullable\Collection;
use Wt\Core\Collection\AEntityCollection;
use Bx\Nullable\Entity\NullableEntity;
class NullableCollection extends AEntityCollection
{
/**
* @param $xmlId
* @return NullableEntity
*/
public function &getByXmlId($xmlId)
{
return parent::getByXmlId($xmlId);
}
/**
* @param $id
* @param null $default
* @return NullableEntity|null
*/
public function &get($id, $default = null)
{
return parent::get($id, $default); // TODO: Change the autogenerated stub
}
/**
* @return NullableEntity
*/
public function &first(callable $callback = null, $default = null)
{
return parent::first($callback, $default); // TODO: Change the autogenerated stub
}
/**
* @return NullableEntity
*/
public function &last()
{
return parent::last(); // TODO: Change the autogenerated stub
}
/**
* @return NullableEntity
*/
public function shift()
{
return parent::shift(); // TODO: Change the autogenerated stub
}
/**
* @return NullableEntity
*/
public function pop()
{
return parent::pop(); // TODO: Change the autogenerated stub
}
/**
* @return NullableEntity[]
*/
public function all()
{
return parent::all(); // TODO: Change the autogenerated stub
}
}