Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/mail-accessors' of https://github.com/jurianslu…
Browse files Browse the repository at this point in the history
…iman/zf2 into feature/mail-accessors
  • Loading branch information
Show file tree
Hide file tree
Showing 14 changed files with 202 additions and 202 deletions.
6 changes: 3 additions & 3 deletions src/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct($email, $name = null)

/**
* Retrieve email
*
*
* @return string
*/
public function getEmail()
Expand All @@ -64,7 +64,7 @@ public function getEmail()

/**
* Retrieve name
*
*
* @return string
*/
public function getName()
Expand All @@ -74,7 +74,7 @@ public function getName()

/**
* String representation of address
*
*
* @return string
*/
public function toString()
Expand Down
34 changes: 17 additions & 17 deletions src/AddressList.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AddressList implements Countable, Iterator
{
/**
* List of Address objects we're managing
*
*
* @var array
*/
protected $addresses = array();
Expand Down Expand Up @@ -97,9 +97,9 @@ public function addMany(array $addresses)
}

/**
* Merge another address list into this one
*
* @param AddressList $addressList
* Merge another address list into this one
*
* @param AddressList $addressList
* @return AddressList
*/
public function merge(AddressList $addressList)
Expand All @@ -112,8 +112,8 @@ public function merge(AddressList $addressList)

/**
* Does the email exist in this list?
*
* @param string $email
*
* @param string $email
* @return bool
*/
public function has($email)
Expand All @@ -124,8 +124,8 @@ public function has($email)

/**
* Get an address by email
*
* @param string $email
*
* @param string $email
* @return boolean|Address\AddressInterface
*/
public function get($email)
Expand All @@ -140,7 +140,7 @@ public function get($email)

/**
* Delete an address from the list
*
*
* @param string $email
* @return bool
*/
Expand All @@ -157,7 +157,7 @@ public function delete($email)

/**
* Return count of addresses
*
*
* @return int
*/
public function count()
Expand All @@ -179,7 +179,7 @@ public function rewind()

/**
* Return current item in iteration
*
*
* @return Address
*/
public function current()
Expand All @@ -189,7 +189,7 @@ public function current()

/**
* Return key of current item of iteration
*
*
* @return string
*/
public function key()
Expand All @@ -211,7 +211,7 @@ public function next()

/**
* Is the current item of iteration valid?
*
*
* @return bool
*/
public function valid()
Expand All @@ -221,10 +221,10 @@ public function valid()
}

/**
* Create an address object
*
* @param string $email
* @param string|null $name
* Create an address object
*
* @param string $email
* @param string|null $name
* @return Address
*/
protected function createAddress($email, $name)
Expand Down
Loading

0 comments on commit c7b4a3f

Please sign in to comment.