/** * {@inheritdoc} */ protected function createPayload() { $payload = new FilesListPayload(); $payload->setPage(1); $payload->setCount(10); $payload->setTypes(['all']); $payload->setUserId('U1234567'); $payload->setTimestampFrom(new \DateTime('-1 day')); $payload->setTimestampTo(new \DateTime()); return $payload; }
/** * @return FilesListPayload */ protected function createPayload() { $payload = new FilesListPayload(); $payload->setUserId($this->input->getOption('user-id')); $payload->setCount($this->input->getOption('count')); $payload->setPage($this->input->getOption('page')); $payload->setTimestampFrom($this->input->getOption('from')); $payload->setTimestampTo($this->input->getOption('to')); $payload->setTypes($this->input->getOption('types')); return $payload; }