src/ProcessDetailsCollection.php
public function takeFreeProcess() {
		if ($this->getFreeProcessesCount() === 0) {
			return NULL;
		}
		$freePid = array_shift($this->freeProcessIds);
		if ($freePid === NULL) {
			return NULL;
		}
		return $this->getProcessDetails($freePid);
	}
public function takeFreeProcess() {
		if ($this->getFreeProcessesCount() === 0) {
			return NULL;
		}
		$freePid = array_shift($this->freeProcessIds);
		if ($freePid === NULL) {
			return NULL;
		}
		return $this->getProcessDetails($freePid);
	}
public function takeFreeProcess ( ) { if ( $ this -> getFreeProcessesCount ( ) === 0 ) { return NULL ; } $ freePid = array_shift ( $ this -> freeProcessIds ) ; if ( $ freePid === NULL ) { return NULL ; } return $ this -> getProcessDetails ( $ freePid ) ; }
Takes one ProcessDetails from the list of free ProcessDetails. Returns NULL if no free process is available.

@return ProcessDetails
Takes one ProcessDetails from the list of free ProcessDetails . Returns NULL if no free process is available .