[Intl][4.3] Cleanup internal api

This commit is contained in:
Roland Franssen 2019-05-29 08:53:22 +02:00
parent 33e743b5f7
commit 6eab5d2460
3 changed files with 3 additions and 27 deletions

View File

@ -18,7 +18,7 @@ use Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReaderInterface;
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *
* @internal * @internal to be removed in 5.0.
*/ */
class LanguageDataProvider class LanguageDataProvider
{ {
@ -37,17 +37,11 @@ class LanguageDataProvider
$this->reader = $reader; $this->reader = $reader;
} }
/**
* @internal to be removed in 5.0.
*/
public function getLanguages() public function getLanguages()
{ {
return $this->reader->readEntry($this->path, 'meta', ['Languages']); return $this->reader->readEntry($this->path, 'meta', ['Languages']);
} }
/**
* @internal to be removed in 5.0.
*/
public function getAliases() public function getAliases()
{ {
return $this->reader->readEntry($this->path, 'root', ['Aliases']); return $this->reader->readEntry($this->path, 'root', ['Aliases']);
@ -62,9 +56,6 @@ class LanguageDataProvider
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $language]); return $this->reader->readEntry($this->path, $displayLocale, ['Names', $language]);
} }
/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null) public function getNames($displayLocale = null)
{ {
if (null === $displayLocale) { if (null === $displayLocale) {
@ -83,9 +74,6 @@ class LanguageDataProvider
return $languages; return $languages;
} }
/**
* @internal to be removed in 5.0.
*/
public function getAlpha3Code($language) public function getAlpha3Code($language)
{ {
return $this->reader->readEntry($this->path, 'meta', ['Alpha2ToAlpha3', $language]); return $this->reader->readEntry($this->path, 'meta', ['Alpha2ToAlpha3', $language]);

View File

@ -18,7 +18,7 @@ use Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReaderInterface;
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *
* @internal * @internal to be removed in 5.0.
*/ */
class RegionDataProvider class RegionDataProvider
{ {
@ -37,9 +37,6 @@ class RegionDataProvider
$this->reader = $reader; $this->reader = $reader;
} }
/**
* @internal to be removed in 5.0.
*/
public function getRegions() public function getRegions()
{ {
return $this->reader->readEntry($this->path, 'meta', ['Regions']); return $this->reader->readEntry($this->path, 'meta', ['Regions']);
@ -54,9 +51,6 @@ class RegionDataProvider
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $region]); return $this->reader->readEntry($this->path, $displayLocale, ['Names', $region]);
} }
/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null) public function getNames($displayLocale = null)
{ {
if (null === $displayLocale) { if (null === $displayLocale) {

View File

@ -18,7 +18,7 @@ use Symfony\Component\Intl\Data\Bundle\Reader\BundleEntryReaderInterface;
* *
* @author Bernhard Schussek <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
* *
* @internal * @internal to be removed in 5.0.
*/ */
class ScriptDataProvider class ScriptDataProvider
{ {
@ -37,9 +37,6 @@ class ScriptDataProvider
$this->reader = $reader; $this->reader = $reader;
} }
/**
* @internal to be removed in 5.0.
*/
public function getScripts() public function getScripts()
{ {
return $this->reader->readEntry($this->path, 'meta', ['Scripts']); return $this->reader->readEntry($this->path, 'meta', ['Scripts']);
@ -54,9 +51,6 @@ class ScriptDataProvider
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $script]); return $this->reader->readEntry($this->path, $displayLocale, ['Names', $script]);
} }
/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null) public function getNames($displayLocale = null)
{ {
if (null === $displayLocale) { if (null === $displayLocale) {