| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\ |
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| |
| |
| |
| | |
The return type of the Communicator::add method has been removed as the return type can be as mentioned in the PHPDocs 'ProcessedComponentInterface ProcessedContact, ProcessedGroup, PrcessedMembership or a ClassValidatinArray' all the return tyes except ClassValidationArray implements ProcessedComponentInterface and ClassValidationArray will not implement that interface either because it doesn't work that way.
As said what is returned by the method in question is still mentioned in the PHPdocs.
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|/
|
|
|
|
| |
Resolves #20
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|\ |
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |\
| | |
| | |
| | | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Fixed issues generated by SensioLabsInsight.
* Added method chaining to Contact and Group.
* Added BlacklistEntry class and corresponding ProcessedComponent.
* Minimize build dependencies.
* Added missing contactsFetched() function in ProcessedGroup.
* Added more tests general tests.
* Added tests that call the API.
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
| |
| |
| | |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|/
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
|
|
|
|
|
| |
Functions which only takes a single Recipient Object has been added.
These functions has been added to enable a better developing experience.
This is because it allows the end developer to do less documentation checking
since a URI/Endpoint is removed out of the equation.
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
|
|
| |
Fixes issue #4 Add function Group::addMember()
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
|
|
|
|
|
| |
Added phpDoc comments (and some general ones).
Fixed typo in function name.
Added phpunit tests for the ClassValidationArray. Errors that was found
in the tests has been corrected for in the ClassValidationArray class.
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Other than implementing MembershipRelation to ProcessedContact this also
contains functions for getting ProcessedContact(s) and ProcessedGroup(s)
that a Group has memberships for and is a member of respectivly.
The quality of life function has made it's way to RecipientFactory that
takes an array of stdClasses (containing group data) and turns it into
an array of ProcessedGroup. It's not much in terms of code but it will
lessen the lines of code required when dealing with arrays of
stdClasses.
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
| |
|
|
|
|
|
|
|
|
| |
Added more documentation.
Add error handling for SMS::setSender - now gives warning
Also tweaked test to go along with the error handling.
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
|
|
|
|
|
| |
Added missing function getNumber($index) to OutGoingSMS.
This commit also includes unit tests for OutGoingSMS.
It's not a complete test suite but all the tests that are there are
valid and in working order.
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
|
|
| |
Added quaility of life functions that allow you to add whole arrays to OutGoingSMS objects. Also added more PHPDoc but PHPDoc seems to have a problem with generating class documentation files for classes that aren't abstract.
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
| |
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
|
|
| |
Added more comments to the code and fixed some typos.
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
|
|
|
|
|
|
| |
Added a class called ProcessedContact which is a child of the Contact
class. The ProcessedContact class is what you will get in return when
adding a Contact to the API or when getting previously added contacts.
Tests for this class has also been added together with PHPDoc comments
for both the Contact and ProcessedContact class.
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The static create* functions that were in the Contact class has now been
moved to a RecipientFactory this is so that the Recipeint classes can be
overwritten/extended in the future either by IP1 or by third party.
Unit Tests have also been altered to support this.
JSON input output tests (such as ContactTest::testCreateFromStdClass)
now compare against stdClass objects instead of JSON strings in so that
the order of the attributes in the JSON doesn't matter.
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
|
|
|
|
|
|
|
|
| |
Contact::createFromStdClass now throws it's own InvalidAgrumentException
when FirstName and Phone is empty. Since Contact::createFromJSON calls
that function need to throw a slightly different error. Haven't looked
into a good solution for this.
Pls fix.
|
|
|
|
|
|
|
|
|
|
|
| |
The contact class the class to use when a contact hasn't been added to
the API yet. It has support to change all the attributes that the API
supports.
Next work will be done on the processed contact which will be named
ProcessedContact and implements the UpdatabaleComponent interface.
Comments hasn't been added to the class but will be in the near future
together with PHPDoc support.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|