post = $hooks->wrap($post); $this->usersQuery = $hooks->wrap( $usersQuery ); $this->notificator = $hooks->wrap( $notificator ); } public function executeOn( $userId ) { $user = $this->usersQuery->findById( $userId ); $this->notificator->setOnForUser( $user ); $msg = '__Notifications Turned On__'; $to = '-referrer-'; $return = array( $to, $msg ); return $return; } public function executeOff( $userId ) { $user = $this->usersQuery->findById( $userId ); $this->notificator->setOffForUser( $user ); $msg = '__Notifications Turned Off__'; $to = '-referrer-'; $return = array( $to, $msg ); return $return; } }