Fix bugs for documentor

This commit is contained in:
Dennis Eichhorn 2016-11-15 11:46:23 +01:00
parent b3ffd525d4
commit 8a68def05d
17 changed files with 561 additions and 46 deletions

View File

@ -0,0 +1,34 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Algorithm;
use phpOMS\Datatypes\Enum;
/**
* Task status enum.
*
* @category Tasks
* @package Modules
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
abstract class AlgorithmType extends Enum
{
const BRUTEFORCE = 0;
}

View File

@ -0,0 +1,32 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Algorithm\Knappsack;
/**
* Shape interface.
*
* @category Framework
* @package phpOMS\Math
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
interface ItemInterface
{
}

View File

@ -74,7 +74,7 @@ class MemCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function set($key, $value, CacheStatus $type = null, int $expire = 2592000)
public function set($key, $value, int $expire = -1)
{
$this->memc->set($key, $value, false, $expire);
}
@ -82,7 +82,7 @@ class MemCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function add($key, $value, CacheStatus $type = null, int $expire = 2592000) : bool
public function add($key, $value, int $expire = -1) : bool
{
return $this->memc->add($key, $value, false, $expire);
}
@ -90,7 +90,7 @@ class MemCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function get($key, CacheStatus $type = null)
public function get($key, int $expire = -1)
{
return $this->memc->get($key);
}
@ -98,7 +98,7 @@ class MemCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function delete($key, CacheStatus $type = null) : bool
public function delete($key, int $expire = -1) : bool
{
$this->memc->delete($key);
}
@ -106,15 +106,27 @@ class MemCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function flush(CacheStatus $type = null)
public function flush(int $expire = 0) : bool
{
$this->memc->flush();
return true;
}
/**
* {@inheritdoc}
*/
public function replace($key, $value, CacheType $type = null, int $expire = -1) : bool
public function flushAll() : bool
{
$this->memc->flush();
return true;
}
/**
* {@inheritdoc}
*/
public function replace($key, $value, int $expire = -1) : bool
{
$this->memc->replace($key, $value, false, $expire);
}
@ -136,6 +148,14 @@ class MemCache implements CacheInterface
return $this->threshold;
}
/**
* {@inheritdoc}
*/
public function setStatus(int $status)
{
$this->status = $status;
}
/**
* Destructor.
*

View File

@ -32,7 +32,7 @@ class NullCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function set($key, $value, CacheStatus $type = null, int $expire = 2592000)
public function set($key, $value, int $expire = -1)
{
// TODO: Implement set() method.
}
@ -40,7 +40,7 @@ class NullCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function add($key, $value, CacheStatus $type = null, int $expire = 2592000) : bool
public function add($key, $value, int $expire = -1) : bool
{
// TODO: Implement add() method.
}
@ -48,7 +48,7 @@ class NullCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function get($key, CacheStatus $type = null)
public function get($key, int $expire = -1)
{
// TODO: Implement get() method.
}
@ -56,7 +56,7 @@ class NullCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function delete($key, CacheStatus $type = null) : bool
public function delete($key, int $expire = -1) : bool
{
// TODO: Implement delete() method.
}
@ -64,15 +64,27 @@ class NullCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function flush(CacheStatus $type = null)
public function flush(int $expire = 0) : bool
{
// TODO: Implement flush() method.
return true;
}
/**
* {@inheritdoc}
*/
public function replace($key, $value, CacheType $type = null, int $expire = -1) : bool
public function flushAll() : bool
{
// TODO: Implement flush() method.
return true;
}
/**
* {@inheritdoc}
*/
public function replace($key, $value, int $expire = -1) : bool
{
// TODO: Implement replace() method.
}
@ -93,4 +105,11 @@ class NullCache implements CacheInterface
// TODO: Implement getThreshold() method.
}
/**
* {@inheritdoc}
*/
public function setStatus(int $status)
{
// TODO: Implement setStatus() method.
}
}

View File

@ -34,7 +34,7 @@ class RedisCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function set($key, $value, CacheStatus $type = null, int $expire = 2592000)
public function set($key, $value, int $expire = -1)
{
// TODO: Implement set() method.
}
@ -42,7 +42,7 @@ class RedisCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function add($key, $value, CacheStatus $type = null, int $expire = 2592000) : bool
public function add($key, $value, int $expire = -1) : bool
{
// TODO: Implement add() method.
}
@ -50,7 +50,7 @@ class RedisCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function get($key, CacheStatus $type = null)
public function get($key, int $expire = -1)
{
// TODO: Implement get() method.
}
@ -58,7 +58,7 @@ class RedisCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function delete($key, CacheStatus $type = null) : bool
public function delete($key, int $expire = -1) : bool
{
// TODO: Implement delete() method.
}
@ -66,15 +66,27 @@ class RedisCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function flush(CacheStatus $type = null)
public function flush(int $expire = 0) : bool
{
// TODO: Implement flush() method.
return true;
}
/**
* {@inheritdoc}
*/
public function replace($key, $value, CacheType $type = null, int $expire = -1) : bool
public function flushAll() : bool
{
// TODO: Implement flush() method.
return true;
}
/**
* {@inheritdoc}
*/
public function replace($key, $value, int $expire = -1) : bool
{
// TODO: Implement replace() method.
}
@ -95,4 +107,11 @@ class RedisCache implements CacheInterface
// TODO: Implement getThreshold() method.
}
/**
* {@inheritdoc}
*/
public function setStatus(int $status)
{
// TODO: Implement setStatus() method.
}
}

View File

@ -34,7 +34,7 @@ class WinCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function set($key, $value, CacheStatus $type = null, int $expire = 2592000)
public function set($key, $value, int $expire = -1)
{
// TODO: Implement set() method.
}
@ -42,7 +42,7 @@ class WinCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function add($key, $value, CacheStatus $type = null, int $expire = 2592000) : bool
public function add($key, $value, int $expire = -1) : bool
{
// TODO: Implement add() method.
}
@ -50,7 +50,7 @@ class WinCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function get($key, CacheStatus $type = null)
public function get($key, int $expire = -1)
{
// TODO: Implement get() method.
}
@ -58,7 +58,7 @@ class WinCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function delete($key, CacheStatus $type = null) : bool
public function delete($key, int $expire = -1) : bool
{
// TODO: Implement delete() method.
}
@ -66,15 +66,27 @@ class WinCache implements CacheInterface
/**
* {@inheritdoc}
*/
public function flush(CacheStatus $type = null)
public function flush(int $expire = 0) : bool
{
// TODO: Implement flush() method.
return true;
}
/**
* {@inheritdoc}
*/
public function replace($key, $value, CacheType $type = null, int $expire = -1) : bool
public function flushAll() : bool
{
// TODO: Implement flush() method.
return true;
}
/**
* {@inheritdoc}
*/
public function replace($key, $value, int $expire = -1) : bool
{
// TODO: Implement replace() method.
}
@ -95,4 +107,11 @@ class WinCache implements CacheInterface
// TODO: Implement getThreshold() method.
}
/**
* {@inheritdoc}
*/
public function setStatus(int $status)
{
// TODO: Implement setStatus() method.
}
}

View File

@ -0,0 +1,31 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Math\Numerics\Interpolation;
/**
* Web module interface.
*
* @category Framework
* @package phpOMS\Module
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
class CubicSplineInterpolation
{
}

View File

@ -0,0 +1,31 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Math\Numerics\Interpolation;
/**
* Web module interface.
*
* @category Framework
* @package phpOMS\Module
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
class LinearInterpolation
{
}

View File

@ -0,0 +1,31 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Math\Numerics\Interpolation;
/**
* Web module interface.
*
* @category Framework
* @package phpOMS\Module
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
class PolynomialInterpolation
{
}

View File

@ -13,9 +13,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Datatypes;
use phpOMS\Validation\Base\IbanEnum;
namespace phpOMS\Stdlib\Graph;
/**
* Tree class.

View File

@ -13,7 +13,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Datatypes;
namespace phpOMS\Stdlib\Graph;
/**
* Tree class.

View File

@ -13,7 +13,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Datatypes;
namespace phpOMS\Stdlib\Graph;
/**
* Tree class.

View File

@ -13,7 +13,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Datatypes;
namespace phpOMS\Stdlib\Graph;
/**
* Tree class.

View File

@ -13,7 +13,7 @@
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Datatypes;
namespace phpOMS\Stdlib\Graph;
/**
* Tree class.
@ -33,10 +33,10 @@ class Tree extends Graph
public function __construct()
{
$root = new Node();
$this->addNode($root);
parent::addNode($root);
}
public function addNode(Node $base, Node $node)
public function addRelativeNode(Node $base, Node $node)
{
parent::addNode($node);
parent::addEdge(new Edge($base, $node));

View File

@ -28,7 +28,7 @@ use phpOMS\Datatypes\Enum;
* @link http://orange-management.com
* @since 1.0.0
*/
abstract class PrioirtyMode extends Enum
abstract class PriorityMode extends Enum
{
const FIFO = 0;
const LIFO = 0;

View File

@ -32,127 +32,225 @@ use phpOMS\System\File\StorageAbstract;
*/
class FtpStorage extends StorageAbstract
{
/**
* {@inheritdoc}
*/
public static function created(string $path) : \DateTime
{
// TODO: Implement created() method.
}
/**
* {@inheritdoc}
*/
public static function changed(string $path) : \DateTime
{
// TODO: Implement changed() method.
}
/**
* {@inheritdoc}
*/
public static function owner(string $path) : int
{
// TODO: Implement owner() method.
}
public static function permission(string $path) : int
/**
* {@inheritdoc}
*/
public static function permission(string $path) : string
{
// TODO: Implement permission() method.
}
/**
* {@inheritdoc}
*/
public static function parent(string $path) : string
{
// TODO: Implement parent() method.
}
/**
* {@inheritdoc}
*/
public static function create(string $path) : bool
{
// TODO: Implement create() method.
}
/**
* {@inheritdoc}
*/
public static function delete(string $path) : bool
{
// TODO: Implement delete() method.
}
/**
* {@inheritdoc}
*/
public static function copy(string $from, string $to, bool $overwrite = false) : bool
{
// TODO: Implement copy() method.
}
/**
* {@inheritdoc}
*/
public static function move(string $from, string $to, bool $overwrite = false) : bool
{
// TODO: Implement move() method.
}
public static function size(string $path) : int
/**
* {@inheritdoc}
*/
public static function size(string $path, bool $recursive = true) : int
{
// TODO: Implement size() method.
}
/**
* {@inheritdoc}
*/
public static function exists(string $path) : bool
{
// TODO: Implement exists() method.
}
public function getCount() : int
/**
* {@inheritdoc}
*/
public static function name(string $path) : string
{
// TODO: Implement name() method.
}
/**
* {@inheritdoc}
*/
public static function basename(string $path) : string
{
// TODO: Implement basename() method.
}
/**
* {@inheritdoc}
*/
public static function count(string $path, bool $recursive = true, array $ignore = []) : int
{
// TODO: Implement count() method.
}
/**
* {@inheritdoc}
*/
public function getCount(bool $recursive = false) : int
{
// TODO: Implement getCount() method.
}
public function getSize() : int
/**
* {@inheritdoc}
*/
public function getSize(bool $recursive = false) : int
{
// TODO: Implement getSize() method.
}
/**
* {@inheritdoc}
*/
public function getName() : string
{
// TODO: Implement getName() method.
}
/**
* {@inheritdoc}
*/
public function getPath() : string
{
// TODO: Implement getPath() method.
}
/**
* {@inheritdoc}
*/
public function getParent() : ContainerInterface
{
// TODO: Implement getParent() method.
}
/**
* {@inheritdoc}
*/
public function createNode() : bool
{
// TODO: Implement createNode() method.
}
public function copyNode() : bool
/**
* {@inheritdoc}
*/
public function copyNode(string $to, bool $overwrite = false) : bool
{
// TODO: Implement copyNode() method.
}
public function moveNode() : bool
/**
* {@inheritdoc}
*/
public function moveNode(string $to, bool $overwrite = false) : bool
{
// TODO: Implement moveNode() method.
}
/**
* {@inheritdoc}
*/
public function deleteNode() : bool
{
// TODO: Implement deleteNode() method.
}
/**
* {@inheritdoc}
*/
public function getCreatedAt() : \DateTime
{
// TODO: Implement getCreatedAt() method.
}
/**
* {@inheritdoc}
*/
public function getChangedAt() : \DateTime
{
// TODO: Implement getChangedAt() method.
}
/**
* {@inheritdoc}
*/
public function getOwner() : int
{
// TODO: Implement getOwner() method.
}
/**
* {@inheritdoc}
*/
public function getPermission() : string
{
// TODO: Implement getPermission() method.
}
/**
* {@inheritdoc}
*/
public function index()
{
// TODO: Implement index() method.
@ -276,28 +374,123 @@ class FtpStorage extends StorageAbstract
// TODO: Implement offsetUnset() method.
}
public static function put(string $path, string $content, bool $overwrite = true) : bool
/**
* {@inheritdoc}
*/
public static function put(string $path, string $content, int $mode = 0) : bool
{
// TODO: Implement put() method.
}
/**
* {@inheritdoc}
*/
public static function get(string $path) : string
{
// TODO: Implement get() method.
}
public function putContent() : bool
/**
* {@inheritdoc}
*/
public function putContent(string $content, int $mode = 0) : bool
{
// TODO: Implement putContent() method.
}
/**
* {@inheritdoc}
*/
public function getContent() : string
{
// TODO: Implement getContent() method.
}
protected function getType() : ContainerInterface
/**
* {@inheritdoc}
*/
public static function sanitize(string $path, string $replace = '') : string
{
// TODO: Implement getType() method.
// TODO: Implement sanitize() method.
}
/**
* {@inheritdoc}
*/
public function getNode(string $name)
{
// TODO: Implement getNode() method.
}
/**
* {@inheritdoc}
*/
public function addNode($file) : bool
{
// TODO: Implement addNode() method.
}
/**
* {@inheritdoc}
*/
public static function set(string $path, string $content) : bool
{
// TODO: Implement set() method.
}
/**
* {@inheritdoc}
*/
public static function append(string $path, string $content) : bool
{
// TODO: Implement append() method.
}
/**
* {@inheritdoc}
*/
public static function prepend(string $path, string $content) : bool
{
// TODO: Implement prepend() method.
}
/**
* {@inheritdoc}
*/
public static function extension(string $path) : string
{
// TODO: Implement extension() method.
}
/**
* {@inheritdoc}
*/
public function setContent(string $content) : bool
{
// TODO: Implement setContent() method.
}
/**
* {@inheritdoc}
*/
public function appendContent(string $content) : bool
{
// TODO: Implement appendContent() method.
}
/**
* {@inheritdoc}
*/
public function prependContent(string $content) : bool
{
// TODO: Implement prependContent() method.
}
/**
* {@inheritdoc}
*/
public function getExtension() : string
{
// TODO: Implement getExtension() method.
}
}

View File

@ -139,7 +139,7 @@ class LocalStorage extends StorageAbstract
/**
* {@inheritdoc}
*/
public static function count(string $path, bool $recursive = false) : int
public static function count(string $path, bool $recursive = true, array $ignore = []) : int
{
// TODO: Implement count() method.
}
@ -405,4 +405,92 @@ class LocalStorage extends StorageAbstract
{
// TODO: Implement getContent() method.
}
/**
* {@inheritdoc}
*/
public static function sanitize(string $path, string $replace = '') : string
{
// TODO: Implement sanitize() method.
}
/**
* {@inheritdoc}
*/
public function getNode(string $name)
{
// TODO: Implement getNode() method.
}
/**
* {@inheritdoc}
*/
public function addNode($file) : bool
{
// TODO: Implement addNode() method.
}
/**
* {@inheritdoc}
*/
public static function set(string $path, string $content) : bool
{
// TODO: Implement set() method.
}
/**
* {@inheritdoc}
*/
public static function append(string $path, string $content) : bool
{
// TODO: Implement append() method.
}
/**
* {@inheritdoc}
*/
public static function prepend(string $path, string $content) : bool
{
// TODO: Implement prepend() method.
}
/**
* {@inheritdoc}
*/
public static function extension(string $path) : string
{
// TODO: Implement extension() method.
}
/**
* {@inheritdoc}
*/
public function setContent(string $content) : bool
{
// TODO: Implement setContent() method.
}
/**
* {@inheritdoc}
*/
public function appendContent(string $content) : bool
{
// TODO: Implement appendContent() method.
}
/**
* {@inheritdoc}
*/
public function prependContent(string $content) : bool
{
// TODO: Implement prependContent() method.
}
/**
* {@inheritdoc}
*/
public function getExtension() : string
{
// TODO: Implement getExtension() method.
}
}