public next ( $t ) : Original | ||
$t | Element to fill hole with | |
return | Original | contents of new hole. |
public function next($t)
{
if ($t !== NULL) {
array_push($this->front, $t);
}
return empty($this->back) ? NULL : array_pop($this->back);
}