示例#1
0
文件: Image.php 项目: netlogix/media
 /**
  * Constructor
  *
  * @param FlowResource $resource
  */
 public function __construct(FlowResource $resource)
 {
     parent::__construct($resource);
     $this->variants = new ArrayCollection();
 }
示例#2
0
文件: Video.php 项目: netlogix/media
 /**
  * Constructs the object and sets default values for width and height
  */
 public function __construct()
 {
     parent::__construct();
     $this->width = -1;
     $this->height = -1;
 }
 /**
  * Constructs the object and sets default values for width and height
  *
  * @param FlowResource $resource
  */
 public function __construct(FlowResource $resource)
 {
     parent::__construct($resource);
     $this->width = -1;
     $this->height = -1;
 }