SYMBOL INDEX (228 symbols across 34 files) FILE: src/Spork/Batch/BatchJob.php class BatchJob (line 19) | class BatchJob method __construct (line 27) | public function __construct(ProcessManager $manager, $data = null, Str... method setName (line 35) | public function setName($name) method setStrategy (line 42) | public function setStrategy(StrategyInterface $strategy) method setData (line 49) | public function setData($data) method setCallback (line 56) | public function setCallback($callback) method execute (line 67) | public function execute($callback = null) method __invoke (line 81) | public function __invoke() FILE: src/Spork/Batch/BatchRunner.php class BatchRunner (line 17) | class BatchRunner method __construct (line 32) | public function __construct($batch, $callback) method __invoke (line 42) | public function __invoke(SharedMemory $shm) FILE: src/Spork/Batch/Strategy/AbstractStrategy.php class AbstractStrategy (line 16) | abstract class AbstractStrategy implements StrategyInterface method createRunner (line 18) | public function createRunner($batch, $callback) FILE: src/Spork/Batch/Strategy/CallbackStrategy.php class CallbackStrategy (line 16) | class CallbackStrategy extends AbstractStrategy method __construct (line 20) | public function __construct($callback) method createBatches (line 29) | public function createBatches($data) FILE: src/Spork/Batch/Strategy/ChunkStrategy.php class ChunkStrategy (line 19) | class ChunkStrategy extends AbstractStrategy method __construct (line 24) | public function __construct($forks = 3, $preserveKeys = false) method createBatches (line 30) | public function createBatches($data) FILE: src/Spork/Batch/Strategy/DoctrineMongoStrategy.php class DoctrineMongoStrategy (line 14) | class DoctrineMongoStrategy extends MongoStrategy FILE: src/Spork/Batch/Strategy/MongoStrategy.php class MongoStrategy (line 25) | class MongoStrategy extends AbstractStrategy method __construct (line 38) | public function __construct($size = 3, $skip = 0) method createBatches (line 44) | public function createBatches($cursor) FILE: src/Spork/Batch/Strategy/StrategyInterface.php type StrategyInterface (line 17) | interface StrategyInterface method createBatches (line 26) | function createBatches($data); method createRunner (line 39) | function createRunner($batch, $callback); FILE: src/Spork/Batch/Strategy/ThrottleStrategy.php class ThrottleStrategy (line 16) | class ThrottleStrategy implements StrategyInterface method __construct (line 21) | public function __construct(StrategyInterface $delegate, $threshold = 3) method createBatches (line 27) | public function createBatches($data) method createRunner (line 39) | public function createRunner($batch, $callback) FILE: src/Spork/Deferred/Deferred.php class Deferred (line 16) | class Deferred implements DeferredInterface method __construct (line 25) | public function __construct() method getState (line 35) | public function getState() method progress (line 40) | public function progress($progress) method always (line 51) | public function always($always) method done (line 69) | public function done($done) method fail (line 86) | public function fail($fail) method then (line 104) | public function then($done, $fail = null) method notify (line 115) | public function notify() method resolve (line 129) | public function resolve() method reject (line 153) | public function reject() FILE: src/Spork/Deferred/DeferredAggregate.php class DeferredAggregate (line 16) | class DeferredAggregate implements PromiseInterface method __construct (line 21) | public function __construct(array $children) method getState (line 42) | public function getState() method getChildren (line 47) | public function getChildren() method progress (line 52) | public function progress($progress) method always (line 59) | public function always($always) method done (line 66) | public function done($done) method fail (line 73) | public function fail($fail) method then (line 80) | public function then($done, $fail = null) method tick (line 87) | public function tick() FILE: src/Spork/Deferred/DeferredInterface.php type DeferredInterface (line 14) | interface DeferredInterface extends PromiseInterface method notify (line 24) | function notify(); method resolve (line 36) | function resolve(); method reject (line 48) | function reject(); FILE: src/Spork/Deferred/PromiseInterface.php type PromiseInterface (line 14) | interface PromiseInterface method getState (line 29) | function getState(); method progress (line 38) | function progress($progress); method always (line 50) | function always($always); method done (line 61) | function done($done); method fail (line 72) | function fail($fail); method then (line 82) | function then($done, $fail = null); FILE: src/Spork/EventDispatcher/EventDispatcher.php class EventDispatcher (line 21) | class EventDispatcher extends BaseEventDispatcher implements EventDispat... method dispatchSignal (line 23) | public function dispatchSignal($signal) method addSignalListener (line 28) | public function addSignalListener($signal, $callable, $priority = 0) method removeSignalListener (line 34) | public function removeSignalListener($signal, $callable) FILE: src/Spork/EventDispatcher/EventDispatcherInterface.php type EventDispatcherInterface (line 16) | interface EventDispatcherInterface extends BaseEventDispatcherInterface method dispatchSignal (line 18) | function dispatchSignal($signal); method addSignalListener (line 19) | function addSignalListener($signal, $callable, $priority = 0); method removeSignalListener (line 20) | function removeSignalListener($signal, $callable); FILE: src/Spork/EventDispatcher/Events.php class Events (line 14) | final class Events FILE: src/Spork/EventDispatcher/WrappedEventDispatcher.php class WrappedEventDispatcher (line 20) | class WrappedEventDispatcher implements EventDispatcherInterface method __construct (line 24) | public function __construct(BaseEventDispatcherInterface $delegate) method dispatchSignal (line 29) | public function dispatchSignal($signal) method addSignalListener (line 34) | public function addSignalListener($signal, $callable, $priority = 0) method removeSignalListener (line 40) | public function removeSignalListener($signal, $callable) method dispatch (line 45) | public function dispatch($eventName, Event $event = null) method addListener (line 50) | public function addListener($eventName, $listener, $priority = 0) method addSubscriber (line 55) | public function addSubscriber(EventSubscriberInterface $subscriber) method removeListener (line 60) | public function removeListener($eventName, $listener) method removeSubscriber (line 65) | public function removeSubscriber(EventSubscriberInterface $subscriber) method getListeners (line 70) | public function getListeners($eventName = null) method hasListeners (line 75) | public function hasListeners($eventName = null) FILE: src/Spork/Exception/ForkException.php class ForkException (line 19) | class ForkException extends \RuntimeException method __construct (line 25) | public function __construct($name, $pid, Error $error = null) method getPid (line 51) | public function getPid() method getError (line 56) | public function getError() FILE: src/Spork/Exception/ProcessControlException.php class ProcessControlException (line 14) | class ProcessControlException extends \RuntimeException FILE: src/Spork/Exception/UnexpectedTypeException.php class UnexpectedTypeException (line 14) | class UnexpectedTypeException extends \LogicException method __construct (line 16) | public function __construct($value, $expectedType) FILE: src/Spork/Factory.php class Factory (line 17) | class Factory method createBatchJob (line 28) | public function createBatchJob(ProcessManager $manager, $data = null, ... method createSharedMemory (line 41) | public function createSharedMemory($pid = null, $signal = null) method createFork (line 55) | public function createFork($pid, SharedMemory $shm, $debug = false) FILE: src/Spork/Fork.php class Fork (line 20) | class Fork implements DeferredInterface method __construct (line 30) | public function __construct($pid, SharedMemory $shm, $debug = false) method setName (line 42) | public function setName($name) method getPid (line 49) | public function getPid() method wait (line 54) | public function wait($hang = true) method processWaitStatus (line 74) | public function processWaitStatus($status) method receive (line 93) | public function receive() method kill (line 108) | public function kill($signal = SIGINT) method getResult (line 117) | public function getResult() method getOutput (line 124) | public function getOutput() method getError (line 131) | public function getError() method isSuccessful (line 138) | public function isSuccessful() method isExited (line 143) | public function isExited() method isStopped (line 148) | public function isStopped() method isSignaled (line 153) | public function isSignaled() method getExitStatus (line 158) | public function getExitStatus() method getTermSignal (line 165) | public function getTermSignal() method getStopSignal (line 172) | public function getStopSignal() method getState (line 179) | public function getState() method progress (line 184) | public function progress($progress) method always (line 191) | public function always($always) method done (line 198) | public function done($done) method fail (line 205) | public function fail($fail) method then (line 212) | public function then($done, $fail = null) method notify (line 219) | public function notify() method resolve (line 229) | public function resolve() method reject (line 239) | public function reject() FILE: src/Spork/ProcessManager.php class ProcessManager (line 23) | class ProcessManager method __construct (line 34) | public function __construct(EventDispatcherInterface $dispatcher = nul... method __destruct (line 43) | public function __destruct() method getEventDispatcher (line 50) | public function getEventDispatcher() method addListener (line 55) | public function addListener($eventName, $listener, $priority = 0) method setDebug (line 64) | public function setDebug($debug) method zombieOkay (line 69) | public function zombieOkay($zombieOkay = true) method createBatchJob (line 74) | public function createBatchJob($data = null, StrategyInterface $strate... method process (line 79) | public function process($data, $callable, StrategyInterface $strategy ... method fork (line 87) | public function fork($callable) method monitor (line 155) | public function monitor($signal = SIGUSR1) method check (line 161) | public function check() method wait (line 170) | public function wait($hang = true) method waitForNext (line 177) | public function waitForNext($hang = true) method waitFor (line 190) | public function waitFor($pid, $hang = true) method killAll (line 202) | public function killAll($signal = SIGINT) FILE: src/Spork/SharedMemory.php class SharedMemory (line 19) | class SharedMemory method __construct (line 31) | public function __construct($pid = null, $signal = null) method receive (line 52) | public function receive() method send (line 72) | public function send($message, $signal = null, $pause = 500) method signal (line 109) | public function signal($signal) FILE: src/Spork/Util/Error.php class Error (line 14) | class Error implements \Serializable method fromException (line 22) | public static function fromException(\Exception $e) method getClass (line 34) | public function getClass() method setClass (line 39) | public function setClass($class) method getMessage (line 44) | public function getMessage() method setMessage (line 49) | public function setMessage($message) method getFile (line 54) | public function getFile() method setFile (line 59) | public function setFile($file) method getLine (line 64) | public function getLine() method setLine (line 69) | public function setLine($line) method getCode (line 74) | public function getCode() method setCode (line 79) | public function setCode($code) method serialize (line 84) | public function serialize() method unserialize (line 95) | public function unserialize($str) FILE: src/Spork/Util/ExitMessage.php class ExitMessage (line 14) | class ExitMessage implements \Serializable method getResult (line 20) | public function getResult() method setResult (line 25) | public function setResult($result) method getOutput (line 30) | public function getOutput() method setOutput (line 35) | public function setOutput($output) method getError (line 40) | public function getError() method setError (line 45) | public function setError(Error $error) method serialize (line 50) | public function serialize() method unserialize (line 59) | public function unserialize($str) FILE: src/Spork/Util/ThrottleIterator.php class ThrottleIterator (line 19) | class ThrottleIterator implements \OuterIterator method __construct (line 25) | public function __construct($inner, $threshold) method getInnerIterator (line 38) | public function getInnerIterator() method current (line 62) | public function current() method key (line 72) | public function key() method next (line 77) | public function next() method rewind (line 82) | public function rewind() method valid (line 87) | public function valid() method getLoad (line 92) | protected function getLoad() method sleep (line 99) | protected function sleep($period) method throttle (line 104) | private function throttle($period = 1) FILE: tests/Spork/Test/Batch/Strategy/ChunkStrategyTest.php class ChunkStrategyTest (line 16) | class ChunkStrategyTest extends \PHPUnit_Framework_TestCase method testChunkArray (line 21) | public function testChunkArray($number, $expectedCounts) method provideNumber (line 32) | public function provideNumber() FILE: tests/Spork/Test/Batch/Strategy/MongoStrategyTest.php class MongoStrategyTest (line 18) | class MongoStrategyTest extends \PHPUnit_Framework_TestCase method setUp (line 23) | protected function setUp() method tearDown (line 45) | protected function tearDown() method testBatchJob (line 54) | public function testBatchJob() FILE: tests/Spork/Test/Deferred/DeferredAggregateTest.php class DeferredAggregateTest (line 17) | class DeferredAggregateTest extends \PHPUnit_Framework_TestCase method testInvalidChild (line 19) | public function testInvalidChild() method testNoChildren (line 26) | public function testNoChildren() method testResolvedChildren (line 38) | public function testResolvedChildren() method testResolution (line 53) | public function testResolution() method testRejection (line 74) | public function testRejection() method testNested (line 101) | public function testNested() method testFail (line 117) | public function testFail() FILE: tests/Spork/Test/Deferred/DeferredTest.php class DeferredTest (line 16) | class DeferredTest extends \PHPUnit_Framework_TestCase method setUp (line 20) | protected function setUp() method tearDown (line 25) | protected function tearDown() method testCallbackOrder (line 33) | public function testCallbackOrder($method, $expected) method testThen (line 61) | public function testThen($method, $expected) method testMultipleResolve (line 79) | public function testMultipleResolve($method) method testInvalidResolve (line 96) | public function testInvalidResolve($method, $invalid) method testAlreadyResolved (line 107) | public function testAlreadyResolved($resolve, $queue, $expect = true) method testInvalidCallback (line 123) | public function testInvalidCallback($method, $invalid) method getMethodAndKey (line 132) | public function getMethodAndKey() method getMethodAndInvalid (line 140) | public function getMethodAndInvalid() method getMethodAndQueue (line 148) | public function getMethodAndQueue() method getMethodAndInvalidCallback (line 160) | public function getMethodAndInvalidCallback() method getMethod (line 172) | public function getMethod() FILE: tests/Spork/Test/ProcessManagerTest.php class ProcessManagerTest (line 17) | class ProcessManagerTest extends \PHPUnit_Framework_TestCase method setUp (line 26) | protected function setUp() method tearDown (line 31) | protected function tearDown() method testDoneCallbacks (line 36) | public function testDoneCallbacks() method testFailCallbacks (line 56) | public function testFailCallbacks() method testObjectReturn (line 74) | public function testObjectReturn() method testBatchProcessing (line 86) | public function testBatchProcessing() method testBatchProcessingWithNewlineReturnValues (line 102) | public function testBatchProcessingWithNewlineReturnValues() method batchProvider (line 133) | public function batchProvider() method testLargeBatchProcessing (line 151) | public function testLargeBatchProcessing($rangeEnd) class Unserializable (line 166) | class Unserializable method __sleep (line 168) | public function __sleep() FILE: tests/Spork/Test/SignalTest.php class SignalTest (line 16) | class SignalTest extends \PHPUnit_Framework_TestCase method setUp (line 20) | protected function setUp() method tearDown (line 25) | protected function tearDown() method testSignalParent (line 30) | public function testSignalParent() FILE: tests/Spork/Test/Util/ThrottleIteratorTest.php class ThrottleIteratorTest (line 16) | class ThrottleIteratorTest extends \PHPUnit_Framework_TestCase method setUp (line 20) | protected function setUp() method tearDown (line 26) | protected function tearDown() method testIteration (line 31) | public function testIteration() class ThrottleIteratorStub (line 38) | class ThrottleIteratorStub extends ThrottleIterator method getLoad (line 43) | protected function getLoad() method sleep (line 48) | protected function sleep($period)