More tidying.
[yaffs-website] / vendor / drupal / console / src / Command / Shared / CreateTrait.php
1 <?php
2
3 /**
4  * @file
5  * Contains Drupal\Console\Command\Shared\CreateTrait.
6  */
7
8 namespace Drupal\Console\Command\Shared;
9
10 /**
11  * Class CreateTrait
12  *
13  * @package Drupal\Console\Command
14  */
15 trait CreateTrait
16 {
17     /**
18      * @return array
19      */
20     private function getTimeRange()
21     {
22         $timeRanges = [
23             1 => sprintf('N | %s', $this->trans('commands.create.nodes.questions.time-ranges.0')),
24             3600 => sprintf('H | %s', $this->trans('commands.create.nodes.questions.time-ranges.1')),
25             86400 => sprintf('D | %s', $this->trans('commands.create.nodes.questions.time-ranges.2')),
26             604800 => sprintf('W | %s', $this->trans('commands.create.nodes.questions.time-ranges.3')),
27             2592000 => sprintf('M | %s', $this->trans('commands.create.nodes.questions.time-ranges.4')),
28             31536000 => sprintf('Y | %s', $this->trans('commands.create.nodes.questions.time-ranges.5'))
29         ];
30
31         return $timeRanges;
32     }
33 }