/**
  * @param Shift $shift
  * @return array
  */
 public function transform(Shift $shift)
 {
     return ['id' => (int) $shift->getId(), 'break' => $shift->getBreak(), 'start_time' => $shift->getStartTime()->format('r'), 'end_time' => $shift->getEndTime()->format('r'), 'links' => [['rel' => 'self', 'uri' => '/shifts/' . $shift->getId()]]];
 }
 /**
  * @param Shift $shift
  * @return array
  */
 public function transform(Shift $shift)
 {
     return ['id' => (int) $shift->getId(), 'manager' => $this->item($shift->getManager(), new UserTransformer()), 'employee' => $this->item($shift->getEmployee(), new UserTransformer()), 'break' => $shift->getBreak(), 'start_time' => $shift->getStartTime()->format('r'), 'end_time' => $shift->getEndTime()->format('r'), 'links' => [['rel' => 'self', 'uri' => '/shifts/' . $shift->getId()]]];
 }