getSuggestion() публичный Метод

public getSuggestion ( ) : array
Результат array
 public function testConfigSuggestion()
 {
     $message = 'some message';
     $configArray = array('foo' => 'bar');
     $suggestion = new ConfigSuggestion($message, $configArray);
     $this->assertSame($message, $suggestion->getMessage());
     $this->assertSame($configArray, $suggestion->getSuggestion());
     $this->assertFalse($suggestion->isMandatory());
     $newMessage = 'foo bar';
     $suggestion->setMessage($newMessage);
     $this->assertSame($newMessage, $suggestion->getMessage());
     $newConfigArray = array('ez' => 'publish');
     $suggestion->setSuggestion($newConfigArray);
     $this->assertSame($newConfigArray, $suggestion->getSuggestion());
     $suggestion->setMandatory(true);
     $this->assertTrue($suggestion->isMandatory());
 }
    public function format(ConfigSuggestion $configSuggestion)
    {
        $yamlConfig = Yaml::dump($configSuggestion->getSuggestion(), 8);
        if (php_sapi_name() !== 'cli') {
            $yamlConfig = "<pre>{$yamlConfig}</pre>";
        }
        return <<<EOT
{$configSuggestion->getMessage()}


Example:
========

{$yamlConfig}
EOT;
    }