summaryrefslogtreecommitdiffstats
path: root/src/Config/Controls.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Config/Controls.php')
-rw-r--r--src/Config/Controls.php28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/Config/Controls.php b/src/Config/Controls.php
index 7306a56..e38e6f0 100644
--- a/src/Config/Controls.php
+++ b/src/Config/Controls.php
@@ -21,7 +21,7 @@ use League\Csv\Iterator\MapIterator;
* A trait to configure and check CSV file and content
*
* @package League.csv
- * @since 6.0.0
+ * @since 5.5.0
*
*/
trait Controls
@@ -175,6 +175,32 @@ trait Controls
}
/**
+ * DEPRECATION WARNING! This method will be removed in the next major point release
+ *
+ * @deprecated deprecated since version 5.5
+ *
+ * @param string $str
+ *
+ * @return self
+ */
+ public function setEncoding($str)
+ {
+ return $this->setEncodingFrom($str);
+ }
+
+ /**
+ * DEPRECATION WARNING! This method will be removed in the next major point release
+ *
+ * @deprecated deprecated since version 5.5
+ *
+ * @return string
+ */
+ public function getEncoding()
+ {
+ return $this->getEncodingFrom();
+ }
+
+ /**
* Set the CSV encoding charset
*
* @param string $str