diff --git a/Models/CategoryMapper.php b/Models/CategoryMapper.php index b872cb4..6a42931 100644 --- a/Models/CategoryMapper.php +++ b/Models/CategoryMapper.php @@ -54,44 +54,4 @@ class CategoryMapper extends DataMapperAbstract */ protected static $primaryField = 'riskmngmt_category_id'; - /** - * Create object. - * - * @param mixed $obj Object - * @param int $relations Behavior for relations creation - * - * @return mixed - * - * @since 1.0.0 - */ - public static function create($obj, int $relations = RelationType::ALL) - { - try { - $objId = parent::create($obj, $relations); - - if ($objId === null || !is_scalar($objId)) { - return $objId; - } - } catch (\Exception $e) { - return false; - } - - return $objId; - } - - /** - * Get object. - * - * @param mixed $primaryKey Key - * @param int $relations Load relations - * @param mixed $fill Object to fill - * - * @return Cause - * - * @since 1.0.0 - */ - public static function get($primaryKey, int $relations = RelationType::ALL, $fill = null) - { - return parent::get($primaryKey, $relations, $fill); - } } diff --git a/Models/CauseMapper.php b/Models/CauseMapper.php index d6cafad..a12dfec 100644 --- a/Models/CauseMapper.php +++ b/Models/CauseMapper.php @@ -69,44 +69,4 @@ class CauseMapper extends DataMapperAbstract */ protected static $primaryField = 'riskmngmt_cause_id'; - /** - * Create object. - * - * @param mixed $obj Object - * @param int $relations Behavior for relations creation - * - * @return mixed - * - * @since 1.0.0 - */ - public static function create($obj, int $relations = RelationType::ALL) - { - try { - $objId = parent::create($obj, $relations); - - if ($objId === null || !is_scalar($objId)) { - return $objId; - } - } catch (\Exception $e) { - return false; - } - - return $objId; - } - - /** - * Get object. - * - * @param mixed $primaryKey Key - * @param int $relations Load relations - * @param mixed $fill Object to fill - * - * @return Cause - * - * @since 1.0.0 - */ - public static function get($primaryKey, int $relations = RelationType::ALL, $fill = null) - { - return parent::get($primaryKey, $relations, $fill); - } } diff --git a/Models/DepartmentMapper.php b/Models/DepartmentMapper.php index daa21b0..3d8d65d 100644 --- a/Models/DepartmentMapper.php +++ b/Models/DepartmentMapper.php @@ -64,44 +64,4 @@ class DepartmentMapper extends DataMapperAbstract ], ]; - /** - * Create object. - * - * @param mixed $obj Object - * @param int $relations Behavior for relations creation - * - * @return mixed - * - * @since 1.0.0 - */ - public static function create($obj, int $relations = RelationType::ALL) - { - try { - $objId = parent::create($obj, $relations); - - if ($objId === null || !is_scalar($objId)) { - return $objId; - } - } catch (\Exception $e) { - return false; - } - - return $objId; - } - - /** - * Get object. - * - * @param mixed $primaryKey Key - * @param int $relations Load relations - * @param mixed $fill Object to fill - * - * @return Cause - * - * @since 1.0.0 - */ - public static function get($primaryKey, int $relations = RelationType::ALL, $fill = null) - { - return parent::get($primaryKey, $relations, $fill); - } } diff --git a/Models/ProcessMapper.php b/Models/ProcessMapper.php index c686ff1..18c77ec 100644 --- a/Models/ProcessMapper.php +++ b/Models/ProcessMapper.php @@ -67,44 +67,4 @@ class ProcessMapper extends DataMapperAbstract */ protected static $primaryField = 'riskmngmt_process_id'; - /** - * Create object. - * - * @param mixed $obj Object - * @param int $relations Behavior for relations creation - * - * @return mixed - * - * @since 1.0.0 - */ - public static function create($obj, int $relations = RelationType::ALL) - { - try { - $objId = parent::create($obj, $relations); - - if ($objId === null || !is_scalar($objId)) { - return $objId; - } - } catch (\Exception $e) { - return false; - } - - return $objId; - } - - /** - * Get object. - * - * @param mixed $primaryKey Key - * @param int $relations Load relations - * @param mixed $fill Object to fill - * - * @return Cause - * - * @since 1.0.0 - */ - public static function get($primaryKey, int $relations = RelationType::ALL, $fill = null) - { - return parent::get($primaryKey, $relations, $fill); - } } diff --git a/Models/ProjectMapper.php b/Models/ProjectMapper.php index d395f21..0a62edc 100644 --- a/Models/ProjectMapper.php +++ b/Models/ProjectMapper.php @@ -64,44 +64,4 @@ class ProjectMapper extends DataMapperAbstract ], ]; - /** - * Create object. - * - * @param mixed $obj Object - * @param int $relations Behavior for relations creation - * - * @return mixed - * - * @since 1.0.0 - */ - public static function create($obj, int $relations = RelationType::ALL) - { - try { - $objId = parent::create($obj, $relations); - - if ($objId === null || !is_scalar($objId)) { - return $objId; - } - } catch (\Exception $e) { - return false; - } - - return $objId; - } - - /** - * Get object. - * - * @param mixed $primaryKey Key - * @param int $relations Load relations - * @param mixed $fill Object to fill - * - * @return Cause - * - * @since 1.0.0 - */ - public static function get($primaryKey, int $relations = RelationType::ALL, $fill = null) - { - return parent::get($primaryKey, $relations, $fill); - } } diff --git a/Models/RiskMapper.php b/Models/RiskMapper.php index 61a9746..65ce40b 100644 --- a/Models/RiskMapper.php +++ b/Models/RiskMapper.php @@ -116,44 +116,4 @@ class RiskMapper extends DataMapperAbstract */ protected static $primaryField = 'riskmngmt_risk_id'; - /** - * Create object. - * - * @param mixed $obj Object - * @param int $relations Behavior for relations creation - * - * @return mixed - * - * @since 1.0.0 - */ - public static function create($obj, int $relations = RelationType::ALL) - { - try { - $objId = parent::create($obj, $relations); - - if ($objId === null || !is_scalar($objId)) { - return $objId; - } - } catch (\Exception $e) { - return false; - } - - return $objId; - } - - /** - * Get object. - * - * @param mixed $primaryKey Key - * @param int $relations Load relations - * @param mixed $fill Object to fill - * - * @return supplier - * - * @since 1.0.0 - */ - public static function get($primaryKey, int $relations = RelationType::ALL, $fill = null) - { - return parent::get($primaryKey, $relations, $fill); - } } diff --git a/Models/RiskObjectMapper.php b/Models/RiskObjectMapper.php index ece57cc..23cfb68 100644 --- a/Models/RiskObjectMapper.php +++ b/Models/RiskObjectMapper.php @@ -60,44 +60,4 @@ class RiskObjectMapper extends DataMapperAbstract */ protected static $primaryField = 'riskmngmt_risk_object_id'; - /** - * Create object. - * - * @param mixed $obj Object - * @param int $relations Behavior for relations creation - * - * @return mixed - * - * @since 1.0.0 - */ - public static function create($obj, int $relations = RelationType::ALL) - { - try { - $objId = parent::create($obj, $relations); - - if ($objId === null || !is_scalar($objId)) { - return $objId; - } - } catch (\Exception $e) { - return false; - } - - return $objId; - } - - /** - * Get object. - * - * @param mixed $primaryKey Key - * @param int $relations Load relations - * @param mixed $fill Object to fill - * - * @return Cause - * - * @since 1.0.0 - */ - public static function get($primaryKey, int $relations = RelationType::ALL, $fill = null) - { - return parent::get($primaryKey, $relations, $fill); - } } diff --git a/Models/SolutionMapper.php b/Models/SolutionMapper.php index 22ab77f..1bc1f0c 100644 --- a/Models/SolutionMapper.php +++ b/Models/SolutionMapper.php @@ -65,44 +65,4 @@ class SolutionMapper extends DataMapperAbstract */ protected static $primaryField = 'riskmngmt_solution_id'; - /** - * Create object. - * - * @param mixed $obj Object - * @param int $relations Behavior for relations creation - * - * @return mixed - * - * @since 1.0.0 - */ - public static function create($obj, int $relations = RelationType::ALL) - { - try { - $objId = parent::create($obj, $relations); - - if ($objId === null || !is_scalar($objId)) { - return $objId; - } - } catch (\Exception $e) { - return false; - } - - return $objId; - } - - /** - * Get object. - * - * @param mixed $primaryKey Key - * @param int $relations Load relations - * @param mixed $fill Object to fill - * - * @return Cause - * - * @since 1.0.0 - */ - public static function get($primaryKey, int $relations = RelationType::ALL, $fill = null) - { - return parent::get($primaryKey, $relations, $fill); - } }