for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Adlogix package.
*
* (c) Allan Segebarth <[email protected]>
* (c) Jean-Jacques Courtens <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Adlogix\ConfluenceClient\Service;
use Adlogix\ConfluenceClient\Entity\Collection\SpaceCollection;
use Adlogix\ConfluenceClient\Entity\Space;
/**
* Class SpaceService
* @package Adlogix\ConfluenceClient\Service
* @author Cedric Michaux <[email protected]>
class SpaceService extends AbstractApiService
{
* @param array $options
* @return SpaceCollection|null
public function all(array $options = [])
$all = $this->get('space', $options);
return $this->deserialize(
$all,
SpaceCollection::class
);
}
* @param string $key
* @return Space
public function findByKey($key, array $options = [])
$space = $this->get(sprintf('space/%s', $key), $options);
$space,
Space::class