import { Event } from '../Event.entity' ; import { User } from 'src/Domain/HumanResource/User/User.entity' ; export class DoesEventBelongToUser { public isSatisfiedBy ( event , user ) { return event . getUser ( ) . getId ( ) === user . getId ( ) ; } }