Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 9 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import {Event} from '../Event.entity'; |
||
2 | import {User} from 'src/Domain/User/User.entity'; |
||
3 | |||
4 | export class DoesEventBelongToUser { |
||
5 | public isSatisfiedBy(event: Event, user: User): boolean { |
||
6 | return event.getUser().getId() === user.getId(); |
||
7 | } |
||
8 | } |
||
9 |