protected function waitForUserInput() { if (trim(fgets(fopen('php://stdin', 'rb'))) !== chr(13)) { return; } }