Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed May 14, 2017
1 parent 350a130 commit 2a88345
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
39 changes: 21 additions & 18 deletions Classes/Configuration/Settings/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@

class Settings extends AbstractConfiguration
{
/**
* @var string
* @validate Romm.ConfigurationObject:ClassImplements(interface=TYPO3\CMS\Core\Cache\Backend\BackendInterface)
*/
protected $defaultBackendCache = FileBackend::class;

/**
* @var \Romm\Formz\Form\Definition\Settings\FormSettings
*/
Expand All @@ -37,41 +31,50 @@ class Settings extends AbstractConfiguration
*/
protected $defaultFieldSettings;

/**
* @var string
* @validate Romm.ConfigurationObject:ClassImplements(interface=TYPO3\CMS\Core\Cache\Backend\BackendInterface)
*/
protected $defaultBackendCache = FileBackend::class;

/**
* Constructor.
*/
public function __construct()
{
$this->defaultFormSettings = GeneralUtility::makeInstance(FormSettings::class);
$this->defaultFieldSettings = GeneralUtility::makeInstance(FieldSettings::class);
}

/**
* @return string
* @return FormSettings
*/
public function getDefaultBackendCache()
public function getDefaultFormSettings()
{
return $this->defaultBackendCache;
return $this->defaultFormSettings;
}

/**
* @param string $defaultBackendCache
* @return FieldSettings
*/
public function setDefaultBackendCache($defaultBackendCache)
public function getDefaultFieldSettings()
{
$this->defaultBackendCache = $defaultBackendCache;
return $this->defaultFieldSettings;
}

/**
* @return FormSettings
* @return string
*/
public function getDefaultFormSettings()
public function getDefaultBackendCache()
{
return $this->defaultFormSettings;
return $this->defaultBackendCache;
}

/**
* @return FieldSettings
* @param string $defaultBackendCache
*/
public function getDefaultFieldSettings()
public function setDefaultBackendCache($defaultBackendCache)
{
return $this->defaultFieldSettings;
$this->defaultBackendCache = $defaultBackendCache;
}
}
2 changes: 1 addition & 1 deletion Tests/Unit/Configuration/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ConfigurationTest extends AbstractUnitTest
/**
* @test
*/
public function initializationIsDoneProperly()
public function initializationDoneProperly()
{
$configuration = new Configuration;

Expand Down

0 comments on commit 2a88345

Please sign in to comment.