limits = $limits; $this->cgroup = $cgroup; $this->setLogger( new NullLogger() ); } /** * When enabled, text sent to stderr will be logged with a level of 'error'. * * @param bool $yesno * @see Command::logStderr */ public function logStderr( $yesno = true ) { $this->doLogStderr = $yesno; } /** * Instantiates a new Command * * @return Command */ public function create() { $command = new Command(); $command->setLogger( $this->logger ); return $command ->limits( $this->limits ) ->cgroup( $this->cgroup ) ->logStderr( $this->doLogStderr ); } }