Commit Graph

112 Commits

Author SHA1 Message Date
75d80d8b6e PushEvent - Fixed a "Too few arguments" error
+ Fixed a "Too few arguments" error that was produced by code in the `fromJson()` method
2020-03-01 16:39:22 -07:00
b1a5ff58e1 Fixed errors caused by "self" in interfaces
+ Fixed an error that was caused by the presence of "self" in type hinting inside interfaces
2020-02-28 19:25:31 -07:00
a4402e78a6 PushEvent - Updated the model + Added extra method
+ Updated the model to make it align with the ApiModel Interface
+ Added a `validateRequest()` method for validating push event requests
2020-02-28 18:58:17 -07:00
5227b4b995 Client - Added push event "secret key" storage 2020-02-28 18:55:47 -07:00
7cf7d59a54 Small updates to Interfaces and abstract classes
+ Removed extra spaces from method definitions
2020-02-28 18:53:39 -07:00
cdbee13e11 Updated RequestChanable Interface and Trait
+ Fixed an error that was caused by the use of the "self" type-hint in a trait
+ Added more  type-hints to the `setCaller()` method
2020-02-28 12:01:46 -07:00
52244adb34 composer.json - Removed autoloader optimization 2020-02-28 11:12:21 -07:00
239b6b4748 Updated RequestChainable interface and trait
+ Added a new `findOrRequestRepository()` method
2020-02-26 22:52:21 -07:00
f5c7ed4962 Updated RequestChainable Interface and Trait
+ Added a new searchRequestChain()  method that will climb up the request chain searching for an object of a certain class
+ Added some test code for the new method in the TestRun.php file
2020-02-26 22:34:36 -07:00
70f978847e Large changes to inter-object interfaces + More
+ Created a new core interface (called RequestChainable) and applied it to most of the objects using a trait
+ Altered the `__construct()` and `fromJson()` methods of all model classes by replacing the second parameter ($apiRequester) with a $caller parameter
+ Altered the  `__construct()` method of all requester classes to make them accept $client by reference instead of by value
+ Altered the  `__construct()` method of all requester classes by replacing the second parameter ($authToken) with a $caller parameter
+ Changed the name of several methods and properties
+ Altered several docblocks
2020-02-26 20:23:06 -07:00
57bf45938f Updated the composer.json file with my information 2020-02-26 20:14:47 -07:00
a6f2ee8c8a Client - Added a static create() method 2020-02-25 21:38:09 -07:00
0594dce6d0 Updated the .editorconfig to make it more specific 2020-02-25 12:32:37 -07:00
36b06aef96 Updated the TestRun file
+ Added several more tests
2020-02-25 12:32:07 -07:00
128b8f4d4a Updated the Repositories API requester
+ Updated use statements and class names
+ Added a `getByName()` method for getting a repository using its owner and name
+ Added a `getRawFile()` method for getting the contents of a file from a repository
+ Added a `downloadArchive()` method for downloading an archive for a repository
2020-02-25 12:31:30 -07:00
baf886674f Updated the Repository model class
+ Updated namespaces and class names
+ Updated several methods to make this conform to the ApiModelInterface
+ Added a new tags() method for retreiving all tags for a repository
+ Added a new branches() method for retreiving all branches for a repository
+ Added a new archive() method for downloading an archive for the repository
2020-02-25 12:29:16 -07:00
505c4d1750 Client - Added connections for new API requesters
+ Added a connection to the new Tags API requester
+ Added a connection to the new Branches API requester
2020-02-25 12:24:11 -07:00
df8af0b028 Ammendment - Added a missed model 2020-02-25 12:22:34 -07:00
50fb2110ea Made four models conform to the ApiModelInterface
+ Updated the methods and class definitions of several models to make them conform to the new ApiModelInterface
2020-02-25 12:21:51 -07:00
b9320163b9 Organizations - Updated use statements...
+ Updated use statements and class names
2020-02-25 12:18:24 -07:00
712cb7f5ea ApiCollectionInterface - Updated use statments...
+ Updated uses statements and class names
2020-02-25 12:14:48 -07:00
64315d7145 Created two new API requester
+ Created a new Tags API requester to allow us to make tag related API requests
+ Created a new Branches API requester to allow us to make branch related API requests
2020-02-25 12:13:05 -07:00
5153ea84a9 Created three new model classes
+ Created a Branch model class for storing branch data
+ Created a Tag model class for storing tag data
+ Created an Owner model class for storing owner data for branches
2020-02-25 12:11:31 -07:00
9b1e0fe523 Created an interface and abstract class for models
+ Created an interface and abstract class for models to extend
2020-02-25 12:09:21 -07:00
3f5527ee8c Renamed Interfaces and Abstract classes
+ Renamed several classes to make it easier to understand what they are for
2020-02-25 12:07:47 -07:00
5df01f7b54 Moved the ApiCollectionInterface class
+ Move the ApiCollectionInterface class into a new "Collections/Interfaces/" folder
2020-02-20 13:26:42 -07:00
dcd2d8bdf3 Corrected namespaces + Chnaged tab size to 4
+ Went through all the Model classes and updated their namespaces to match their parent folder name
+ Changed tab sizes to 4 spaces instead of 2 (in all php files)
2020-02-20 13:21:18 -07:00
b17224ce39 Refactored and reorganized
+ Created new a new interface and abstract class for Api classes that support the all() method
+ Refactored the Repositories Api class
+ Moved the abstract classes into an "Abstracts" folder
+ Moved Api Interfaces into an "Interfaces" folder
+ Corrected namespaces
2020-02-20 13:08:41 -07:00
1bf0c070f8 Huge number of updates, too tired to list them all
+ Added a bunch of API handler classes that will use the already created models
+ Created a new Client class that will connect to new API handler classes
+ Created new collection classes
2020-02-19 22:10:59 -07:00
f530671000 Renamed a configuration file 2019-04-18 20:06:49 +02:00
07567ba1e0 Moved the configuration files to a dedicated folder 2019-04-18 12:15:05 +02:00
72ad2d9c84 Updated the CI 2019-04-17 18:48:21 +02:00
21b2fc1fa3 Using camelcase instead of all caps for constants 2019-04-15 20:27:27 +02:00
76e8cfa0a4 Code formatting 2019-04-15 19:22:15 +02:00
94c3cddd21 Updated the PHPDoc settings 2019-04-15 11:15:08 +02:00
4608d102ba Updated the documentation 2019-04-15 10:29:35 +02:00
02d97067fa Updated the documentation 2019-04-14 02:36:51 +02:00
d498e89310 Updated the PHPUnit settings 2019-04-14 01:06:14 +02:00
a154c77f89 Updated the build system 2019-04-14 00:36:01 +02:00
137ac3af59 Updated the Coveralls dependency 2019-04-14 00:35:53 +02:00
3b584899bd Fixed the PHPUnit settings 2019-04-12 10:02:46 +02:00
605f47177a Moved the PHPUnit settings 2019-04-11 22:21:34 +02:00
4408368977 Moved the MkDocs settings 2019-04-11 22:21:31 +02:00
9c69045c39 Updated the PHPUnit dependency 2019-04-09 19:39:36 +02:00
3a33d37d48 Renamed the 'lib' folder to 'src' 2019-04-02 11:23:19 +02:00
a524382b55 Updated the dependencies 2019-03-26 17:59:48 +01:00
05d6d109a4 Code formatting 2019-03-25 14:45:18 +01:00
65cadf1089 Updated the dependencies 2019-03-25 10:29:44 +01:00
decaa29b81 Removed some '__toString()' methods 2019-03-24 19:57:51 +01:00
1f27843b41 Updated the PHPUnit dependency 2019-03-17 14:52:23 +01:00