FavAUserMail   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 21
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A sendFavAUserNotificationEmail() 0 8 1
1
<?php
2
namespace CTL\SocialMapFavorites\Mail;
3
4
5
class FavAUserMail extends Mail{
6
7
8
  /**
9
   * Sending Email to User Being Favorited
10
   * @param  [type] $user      User Object (User Being Favorited)
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
11
   * @param  [type] $userFaved User Being Favorited
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
12
   * @param  [type] $faveeUser User Favoriting
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
13
   * @return [type]            [description]
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
14
   */
15
  public function sendFavAUserNotificationEmail($user, $userFaved, $faveeUser){
16
17
      $subject = 'You Subject Here';
18
      $view = 'folder.extension'; // point to where your email templates are stored
19
      $data = ['favorited_username' => $userFaved, 'favoritee_username' => $faveeUser];
20
21
      return $this->deliver($user, $subject, $view, $data);
22
  }
23
24
25
}