mirror of
https://github.com/brunofontes/Memsource-API.git
synced 2025-12-16 05:52:08 -03:00
Included the Jobs class
This commit is contained in:
@@ -18,6 +18,7 @@ class Memsource
|
||||
{
|
||||
private $_oauth;
|
||||
private $_bilingualFile;
|
||||
private $_jobs;
|
||||
private $_project;
|
||||
private $_fetchApi;
|
||||
|
||||
@@ -36,16 +37,6 @@ class Memsource
|
||||
return $this->_oauth ?? $this->_oauth = new \BrunoFontes\Memsource\oauth();
|
||||
}
|
||||
|
||||
/**
|
||||
* Memsource API Project related functions
|
||||
*
|
||||
* @return \BrunoFontes\Memsource\Project
|
||||
*/
|
||||
public function project(): \BrunoFontes\Memsource\Project
|
||||
{
|
||||
return $this->_project ?? $this->_project = new \BrunoFontes\Memsource\Project($this->_fetchApi);
|
||||
}
|
||||
|
||||
/**
|
||||
* Memsource API BilingualFile related functions
|
||||
*
|
||||
@@ -55,4 +46,25 @@ class Memsource
|
||||
{
|
||||
return $this->_bilingualFile ?? $this->_bilingualFile = new \BrunoFontes\Memsource\BilingualFile($this->_fetchApi);
|
||||
}
|
||||
|
||||
/**
|
||||
* Memsource API Jobs related functions
|
||||
*
|
||||
* @return \BrunoFontes\Memsource\Jobs
|
||||
*/
|
||||
public function jobs(): \BrunoFontes\Memsource\Jobs
|
||||
{
|
||||
return $this->_jobs ?? $this->_jobs = new \BrunoFontes\Memsource\Jobs($this->_fetchApi);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Memsource API Project related functions
|
||||
*
|
||||
* @return \BrunoFontes\Memsource\Project
|
||||
*/
|
||||
public function project(): \BrunoFontes\Memsource\Project
|
||||
{
|
||||
return $this->_project ?? $this->_project = new \BrunoFontes\Memsource\Project($this->_fetchApi);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user