original_string: public function transform($role)
      {
          $role = $this->entityToArray(Role::class, $role);
          return [
              'id'        => (int) $role['id'],
              'name'      => $role['name'],
              'createdAt' => $role['created_at'],
              'updatedAt' => $role['updated_at']
          ];
      }
code: public function transform($role)
      {
          $role = $this->entityToArray(Role::class, $role);
          return [
              'id'        => (int) $role['id'],
              'name'      => $role['name'],
              'createdAt' => $role['created_at'],
              'updatedAt' => $role['updated_at']
          ];
      }
code_tokens: public function transform ( $ role ) { $ role = $ this -> entityToArray ( Role :: class , $ role ) ; return [ 'id' => ( int ) $ role [ 'id' ] , 'name' => $ role [ 'name' ] , 'createdAt' => $ role [ 'created_at' ] , 'updatedAt' => $ role [ 'updated_at' ] ] ; }
docstring: Transforms role entity
  
  @param Role|array $role Role entity
  
  @return array
docstring_tokens: Transforms role entity