fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user