看板初始化提交

This commit is contained in:
zephyr
2026-06-01 21:23:12 -07:00
commit 27411ebedc
1827 changed files with 192340 additions and 0 deletions
+63
View File
@@ -0,0 +1,63 @@
<?php
namespace Kanboard\EventBuilder;
use Iterator;
/**
* Class EventIteratorBuilder
*
* @package Kanboard\EventBuilder
* @author Frederic Guillot
*/
class EventIteratorBuilder implements Iterator
{
private $position = 0;
private $builders = array();
/**
* Set builder
*
* @access public
* @param BaseEventBuilder $builder
* @return $this
*/
public function withBuilder(BaseEventBuilder $builder)
{
$this->builders[] = $builder;
return $this;
}
#[\ReturnTypeWillChange]
public function rewind()
{
$this->position = 0;
}
/**
* @return BaseEventBuilder
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->builders[$this->position];
}
#[\ReturnTypeWillChange]
public function key()
{
return $this->position;
}
#[\ReturnTypeWillChange]
public function next()
{
++$this->position;
}
#[\ReturnTypeWillChange]
public function valid()
{
return isset($this->builders[$this->position]);
}
}