From df82b56578559d37025bceaea391a86311c54763 Mon Sep 17 00:00:00 2001 From: Rogiel Sulzbach Date: Sun, 24 Jul 2016 00:32:14 -0300 Subject: [PATCH] Allows the Minimap entity to return a image resource for further image processing --- .gitignore | 1 + src/Entity/Minimap.php | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f11b75 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ diff --git a/src/Entity/Minimap.php b/src/Entity/Minimap.php index a773e39..4ec8345 100644 --- a/src/Entity/Minimap.php +++ b/src/Entity/Minimap.php @@ -63,6 +63,17 @@ class Minimap { // ----------------------------------------------------------------------------------------------------------------- + /** + * Gets the image resource + * + * @return resource + */ + public function getImageResource() { + return $this->resource; + } + + // ----------------------------------------------------------------------------------------------------------------- + /** * @param $data * @param int $return_array