PartKeepr\ImageBundle\Entity\Image::__construct PHP Method

__construct() public method

Constructs a new image object.
public __construct ( string $type = null )
$type string The type for the image, one of the IMAGE_ constants.
    public function __construct($type = null)
    {
        $this->setType($type);
        parent::__construct();
    }

Usage Example

 /**
  * Creates a new IC logo instance.
  */
 public function __construct()
 {
     parent::__construct(Image::IMAGE_ICLOGO);
 }
All Usage Examples Of PartKeepr\ImageBundle\Entity\Image::__construct