public function setMemoryLimit($memoryLimit)
    {
        if ($this->status != self::STATUS_NEW) {
            throw new \RuntimeException('Cannot set worker memory limit after worker has started working');
        }

        $this->memoryLimit = $memoryLimit;
    }
public function setMemoryLimit($memoryLimit)
    {
        if ($this->status != self::STATUS_NEW) {
            throw new \RuntimeException('Cannot set worker memory limit after worker has started working');
        }

        $this->memoryLimit = $memoryLimit;
    }
public function setMemoryLimit ( $ memoryLimit ) { if ( $ this -> status != self :: STATUS_NEW ) { throw new \ RuntimeException ( 'Cannot set worker memory limit after worker has started working' ) ; } $ this -> memoryLimit = $ memoryLimit ; }
Set the queue memory limit

@param int $memoryLimit Memory limit
Set the queue memory limit