@@ -79,56 +79,39 @@ public function __construct($decorated = false, array $styles = array())
79
79
}
80
80
81
81
/**
82
- * Sets the decorated flag.
83
- *
84
- * @param bool $decorated Whether to decorate the messages or not
82
+ * {@inheritdoc}
85
83
*/
86
84
public function setDecorated ($ decorated )
87
85
{
88
86
$ this ->decorated = (bool ) $ decorated ;
89
87
}
90
88
91
89
/**
92
- * Gets the decorated flag.
93
- *
94
- * @return bool true if the output will decorate messages, false otherwise
90
+ * {@inheritdoc}
95
91
*/
96
92
public function isDecorated ()
97
93
{
98
94
return $ this ->decorated ;
99
95
}
100
96
101
97
/**
102
- * Sets a new style.
103
- *
104
- * @param string $name The style name
105
- * @param OutputFormatterStyleInterface $style The style instance
98
+ * {@inheritdoc}
106
99
*/
107
100
public function setStyle ($ name , OutputFormatterStyleInterface $ style )
108
101
{
109
102
$ this ->styles [strtolower ($ name )] = $ style ;
110
103
}
111
104
112
105
/**
113
- * Checks if output formatter has style with specified name.
114
- *
115
- * @param string $name
116
- *
117
- * @return bool
106
+ * {@inheritdoc}
118
107
*/
119
108
public function hasStyle ($ name )
120
109
{
121
110
return isset ($ this ->styles [strtolower ($ name )]);
122
111
}
123
112
124
113
/**
125
- * Gets style options from style with specified name.
126
- *
127
- * @param string $name
128
- *
129
- * @return OutputFormatterStyleInterface
130
- *
131
- * @throws \InvalidArgumentException When style isn't defined
114
+ * {@inheritdoc}
132
115
*/
133
116
public function getStyle ($ name )
134
117
{
@@ -140,11 +123,7 @@ public function getStyle($name)
140
123
}
141
124
142
125
/**
143
- * Formats a message according to the given styles.
144
- *
145
- * @param string $message The message to style
146
- *
147
- * @return string The styled message
126
+ * {@inheritdoc}
148
127
*/
149
128
public function format ($ message )
150
129
{
0 commit comments