Example #1
0
 /**
  * @return array
  */
 public function generate()
 {
     if ($this->time) {
         $data = ['time' => $this->time->format(Pin::TIME_FORMAT), 'layout' => parent::generate()];
         unset($data['layout']['time']);
         return $data;
     }
     return ['layout' => parent::generate()];
 }
Example #2
0
 /**
  * @return array
  */
 public function generate()
 {
     return ['time' => $this->time->format(Pin::TIME_FORMAT), 'layout' => parent::generate()];
 }