Adding Docblocks throughout the project and lowering the missing docblock limit in phpci.yml to zero.
Closes #692
This commit is contained in:
parent
a2d136e0f1
commit
7f9a09fa29
83 changed files with 1283 additions and 69 deletions
|
|
@ -22,6 +22,12 @@ use b8\Store;
|
|||
*/
|
||||
class Project extends ProjectBase
|
||||
{
|
||||
/**
|
||||
* Return the latest build from a specific branch, of a specific status, for this project.
|
||||
* @param string $branch
|
||||
* @param null $status
|
||||
* @return mixed|null
|
||||
*/
|
||||
public function getLatestBuild($branch = 'master', $status = null)
|
||||
{
|
||||
$criteria = array('branch' => $branch, 'project_id' => $this->getId());
|
||||
|
|
@ -44,6 +50,10 @@ class Project extends ProjectBase
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Store this project's access_information data
|
||||
* @param string|array $value
|
||||
*/
|
||||
public function setAccessInformation($value)
|
||||
{
|
||||
if (is_array($value)) {
|
||||
|
|
@ -53,6 +63,11 @@ class Project extends ProjectBase
|
|||
parent::setAccessInformation($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get this project's access_information data. Pass a specific key or null for all data.
|
||||
* @param string|null $key
|
||||
* @return mixed|null|string
|
||||
*/
|
||||
public function getAccessInformation($key = null)
|
||||
{
|
||||
$info = $this->data['access_information'];
|
||||
|
|
@ -89,6 +104,10 @@ class Project extends ProjectBase
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the name of a FontAwesome icon to represent this project, depending on its type.
|
||||
* @return string
|
||||
*/
|
||||
public function getIcon()
|
||||
{
|
||||
switch ($this->getType()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue