initial
This commit is contained in:
31
image.php
Normal file
31
image.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace podmanImageManager;
|
||||
|
||||
use \objectStructs\objectStructs;
|
||||
|
||||
class image extends objectStructs
|
||||
{
|
||||
/** @var imageAnnotations */
|
||||
public $annotations;
|
||||
/** @var imageConfig */
|
||||
public $config;
|
||||
/** @var string name of image */
|
||||
public $image;
|
||||
|
||||
public function __construct($vars)
|
||||
{
|
||||
$this->imageName = (isset($vars['image']) ? $vars['image'] :
|
||||
(isset($vars['name']) ? $vars['name'] :
|
||||
(iiset($vars['imageName'] ? $vars['imageName'] : "" ) ) ) ) ;
|
||||
if (isset( $vars['imageBasic']->annotations) )
|
||||
$annotations = $vars['imageBasic']->annotations;
|
||||
elseif (isset($vars['annotations']))
|
||||
$annotations = $vars['annotations'];
|
||||
|
||||
$this->annotations = new imageAnnotations($annotations);
|
||||
if (isset($vars['imageConfig']))
|
||||
$this->config = new imageConfig($vars['imageConfig']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user