aboutsummaryrefslogblamecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/Arm.scala
blob: 70b84ffeba5cf573be4d9f25fb2d0904f8069763 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                       
                                                                          

   
package xyz.driver.pdsuidomain.entities

import java.time.LocalDateTime

import xyz.driver.pdsuicommon.domain.{LongId, StringId}
import xyz.driver.pdsuicommon.logging._

case class Arm(id: LongId[Arm],
               name: String,
               originalName: String,
               trialId: StringId[Trial],
               deleted: Option[LocalDateTime] = None)

object Arm {

  implicit def toPhiString(x: Arm): PhiString = {
    import x._
    phi"Arm(id=$id, name=${Unsafe(x.name)}, trialId=${Unsafe(x.trialId)})"
  }
}