Constructs an asset. The resource is set internally and then initialize()
is called.
public __construct ( |
||
$resource |
/** * Constructs the object and sets default values for width and height * * @param PersistentResource $resource */ public function __construct(PersistentResource $resource) { parent::__construct($resource); $this->width = -1; $this->height = -1; }
/** * Constructor * * @param PersistentResource $resource */ public function __construct(PersistentResource $resource) { parent::__construct($resource); $this->variants = new ArrayCollection(); }