/** * Transforms an object (roles) to a string (choice). * * @param Issue|null $roles * @return string */ public function transform($roles) { if (null === $roles) { return ""; } return $roles->getNumber(); }