summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Make HTTPS default protocolHannes "Brolaugh" Kindströmmer2017-09-271-1/+1
|
* Merge branch 'release/0.3.1-beta'0.3.1-betaHannes Kindströmmer2017-04-192-5/+5
|\
| * Update version tagsHannes Kindströmmer2017-04-192-2/+2
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
| * Remove return type from Communicator::add methodHannes Kindströmmer2017-04-192-3/+3
| | | | | | | | | | | | | | 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>
* | Add Contact/Group fetching functions in MembershipHannes Kindströmmer2017-04-031-0/+25
|/ | | | | | Resolves #20 Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Prepared files for release 0.3.0-betaHannes Kindströmmer2017-03-2120-25/+35
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Fixed issues created by previous commitsHannes Kindströmmer2017-03-211-1/+1
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Debugging editsHannes Kindströmmer2017-03-211-2/+3
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Resovled phpunit error 1 casued by last commitHannes Kindströmmer2017-03-211-1/+1
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Add OwnableInterfaceHannes Kindströmmer2017-03-214-3/+21
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Resolved issues created in last commitHannes Kindströmmer2017-03-211-1/+1
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Implement OwnerID into MembershipHannes Kindströmmer2017-03-212-1/+17
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Implement OwnerID into GroupHannes Kindströmmer2017-03-212-4/+27
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Implement OwnerID into ContactHannes Kindströmmer2017-03-212-11/+25
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Rewrote sendRequest MethodHannes Kindströmmer2017-03-211-21/+31
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Merge branch 'release/0.2.0-beta'0.2.0-betaHannes Kindströmmer2017-03-201-0/+13
|\
| * Test correction number 3Hannes Kindströmmer2017-03-201-1/+1
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
| * Corrected for test feedbackHannes Kindströmmer2017-03-201-1/+1
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
| * Correct and complete BlacklistEntry classes and testsHannes Kindströmmer2017-03-203-2/+13
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
| * Add BlacklistEntry classes and testsHannes Kindströmmer2017-03-202-0/+138
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
| * Merge feature branch 'method-chaining' into 'develop'Hannes Kindströmmer2017-03-202-18/+27
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
| * Add missing functionHannes Kindströmmer2017-03-171-0/+8
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
| * Merge branch 'feature/communicator-testing' into developHannes Kindströmmer2017-03-171-0/+1
| |\ | | | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
| | * Add testsHannes Kindströmmer2017-03-172-5/+6
| | | | | | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | | Merge branch 'develop'Hannes Kindströmmer2017-03-207-23/+197
|/ / | | | | | | | | | | | | | | | | | | * 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.
* | Fix PHPUnit config suite and exceptionsHannes Kindströmmer2017-03-161-2/+2
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | Fixed issue #16Hannes Kindströmmer2017-03-163-4/+4
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | Fixed issue #15Hannes Kindströmmer2017-03-166-13/+13
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | Fixed issue #14Hannes Kindströmmer2017-03-164-12/+12
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | Fixed issue #13Hannes Kindströmmer2017-03-167-14/+14
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | Fixed issue #12Hannes Kindströmmer2017-03-161-1/+0
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | Fixed issue #11Hannes Kindströmmer2017-03-161-1/+1
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | Fixed issue #9 and #10Hannes Kindströmmer2017-03-161-2/+2
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | Fixed issue #7 and #8Hannes Kindströmmer2017-03-161-2/+2
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | Fixed issue #6Hannes Kindströmmer2017-03-161-2/+2
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | Fixed issue #5Hannes Kindströmmer2017-03-161-2/+2
| | | | | | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* | Fixed issue #4Hannes Kindströmmer2017-03-161-2/+2
|/ | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* All file DocBlock are the same0.1.1-betaHannes Kindströmmer2017-03-1517-39/+67
|
* Add version tag in src filesHannes Kindströmmer2017-03-1517-0/+17
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Make Communicator argument types sensableHannes Kindströmmer2017-03-141-26/+21
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Fix leaf methodsHannes Kindströmmer2017-03-143-1/+20
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Major dependency overhaulHannes Kindströmmer2017-03-1310-43/+113
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Add smart(er) Communicator functionsHannes Kindströmmer2017-03-131-2/+86
| | | | | | | | | 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>
* Add doc commentsHannes Kindströmmer2017-03-131-0/+15
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Add Group functionsHannes Kindströmmer2017-03-131-0/+27
|
* Add jsonSerialize to ProcessedGroupHannes Kindströmmer2017-03-132-1/+16
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Small fixes and tweaksHannes Kindströmmer2017-03-135-30/+73
| | | | | | Fixes issue #4 Add function Group::addMember() Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* PHPDoc returns boolean instead of boolHannes Kindströmmer2017-03-106-9/+9
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* PHPDoc int->integer, bool->booleanHannes Kindströmmer2017-03-1010-22/+22
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Fixed issue that was not covered by phpunitHannes Kindströmmer2017-03-101-0/+2
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Prepare documentation for merge with masterHannes Kindströmmer2017-03-1016-232/+600
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Return ClassValidationArray where possibleHannes Kindströmmer2017-03-091-9/+10
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Add documentation and tidy up exception messagesHannes Kindströmmer2017-03-091-11/+23
| | | | | | | | | 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>
* Add documentationHannes Kindströmmer2017-03-092-0/+84
|
* Add types to return valuesHannes Kindströmmer2017-03-095-5/+15
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Implement MembershipRelation to ProcessedContactHannes Kindströmmer2017-03-083-5/+66
| | | | | | | | | | | | | 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>
* Add useful functionsHannes Kindströmmer2017-03-072-1/+13
|
* Add ProcessedMembershipHannes Kindströmmer2017-03-072-0/+81
|
* Add Group and MembershipHannes Kindströmmer2017-03-075-0/+273
|
* Add QoL functionHannes Kindströmmer2017-03-071-0/+8
|
* Implement UpdatableComponent to ProcessedOutGoingSMSHannes Kindströmmer2017-03-071-15/+64
|
* jsonSerialize returns assoc arrayHannes Kindströmmer2017-03-073-18/+36
|
* Fixed: Generated warning on nullHannes Kindströmmer2017-03-071-4/+4
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Corrected for PSR2 standardHannes Kindströmmer2017-03-061-2/+8
|
* Documentation and tweaksHannes Kindströmmer2017-03-064-11/+57
| | | | | | | | 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>
* Add getNumber($index)Hannes Kindströmmer2017-03-031-0/+11
| | | | | | | | | 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>
* Add QoL functions and documentationHannes Kindströmmer2017-03-032-9/+109
| | | | | | 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>
* Add more documentationHannes Kindströmmer2017-03-0310-23/+214
| | | | Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* More comments added, fixed typosHannes Kindströmmer2017-03-034-4/+19
| | | | | | Added more comments to the code and fixed some typos. Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
* Add ProcessedContact and PHPDocHannes Kindströmmer2017-03-022-7/+163
| | | | | | | | | | 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>
* Recipients use Factory class for constructionHannes Kindströmmer2017-03-025-62/+189
| | | | | | | | | | | | 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: Add exception message clarityHannes Kindströmmer2017-03-011-0/+7
| | | | | | | | 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.
* Add contact class and tests for itHannes Kindströmmer2017-03-011-0/+132
| | | | | | | | | | | 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.
* Add required functions to SMSHannes Kindströmmer2017-03-011-1/+6
|
* Fixed autoloading and correced namespacesHannes Kindströmmer2017-02-284-13/+11
|
* Fixed namespacing some issuesHannes Kindströmmer2017-02-283-4/+4
|
* Replaced Component with SPL jsonSerializableHannes Kindströmmer2017-02-286-15/+10
|
* toJson -> toStdClassHannes Kindströmmer2017-02-285-5/+45
|
* Add classes according to UMLHannes Kindströmmer2017-02-277-0/+144