1
This commit is contained in:
26
vendor/phpoffice/phpword/src/PhpWord/Style.php
vendored
26
vendor/phpoffice/phpword/src/PhpWord/Style.php
vendored
@@ -39,7 +39,7 @@ class Style
|
||||
* Add paragraph style.
|
||||
*
|
||||
* @param string $styleName
|
||||
* @param array|\PhpOffice\PhpWord\Style\AbstractStyle $styles
|
||||
* @param AbstractStyle|array $styles
|
||||
*
|
||||
* @return \PhpOffice\PhpWord\Style\Paragraph
|
||||
*/
|
||||
@@ -52,8 +52,8 @@ class Style
|
||||
* Add font style.
|
||||
*
|
||||
* @param string $styleName
|
||||
* @param array|\PhpOffice\PhpWord\Style\AbstractStyle $fontStyle
|
||||
* @param array|\PhpOffice\PhpWord\Style\AbstractStyle $paragraphStyle
|
||||
* @param AbstractStyle|array $fontStyle
|
||||
* @param AbstractStyle|array $paragraphStyle
|
||||
*
|
||||
* @return \PhpOffice\PhpWord\Style\Font
|
||||
*/
|
||||
@@ -66,7 +66,7 @@ class Style
|
||||
* Add link style.
|
||||
*
|
||||
* @param string $styleName
|
||||
* @param array|\PhpOffice\PhpWord\Style\AbstractStyle $styles
|
||||
* @param AbstractStyle|array $styles
|
||||
*
|
||||
* @return \PhpOffice\PhpWord\Style\Font
|
||||
*/
|
||||
@@ -79,7 +79,7 @@ class Style
|
||||
* Add numbering style.
|
||||
*
|
||||
* @param string $styleName
|
||||
* @param array|\PhpOffice\PhpWord\Style\AbstractStyle $styleValues
|
||||
* @param AbstractStyle|array $styleValues
|
||||
*
|
||||
* @return \PhpOffice\PhpWord\Style\Numbering
|
||||
*
|
||||
@@ -94,8 +94,8 @@ class Style
|
||||
* Add title style.
|
||||
*
|
||||
* @param null|int $depth Provide null to set title font
|
||||
* @param array|\PhpOffice\PhpWord\Style\AbstractStyle $fontStyle
|
||||
* @param array|\PhpOffice\PhpWord\Style\AbstractStyle $paragraphStyle
|
||||
* @param AbstractStyle|array $fontStyle
|
||||
* @param AbstractStyle|array $paragraphStyle
|
||||
*
|
||||
* @return \PhpOffice\PhpWord\Style\Font
|
||||
*/
|
||||
@@ -149,7 +149,7 @@ class Style
|
||||
/**
|
||||
* Set default paragraph style.
|
||||
*
|
||||
* @param array|\PhpOffice\PhpWord\Style\AbstractStyle $styles Paragraph style definition
|
||||
* @param AbstractStyle|array $styles Paragraph style definition
|
||||
*
|
||||
* @return \PhpOffice\PhpWord\Style\Paragraph
|
||||
*/
|
||||
@@ -161,7 +161,7 @@ class Style
|
||||
/**
|
||||
* Get all styles.
|
||||
*
|
||||
* @return \PhpOffice\PhpWord\Style\AbstractStyle[]
|
||||
* @return AbstractStyle[]
|
||||
*/
|
||||
public static function getStyles()
|
||||
{
|
||||
@@ -173,7 +173,7 @@ class Style
|
||||
*
|
||||
* @param string $styleName
|
||||
*
|
||||
* @return \PhpOffice\PhpWord\Style\AbstractStyle Paragraph|Font|Table|Numbering
|
||||
* @return ?AbstractStyle Paragraph|Font|Table|Numbering
|
||||
*/
|
||||
public static function getStyle($styleName)
|
||||
{
|
||||
@@ -190,10 +190,10 @@ class Style
|
||||
* The $styleValues could be an array or object
|
||||
*
|
||||
* @param string $name
|
||||
* @param \PhpOffice\PhpWord\Style\AbstractStyle $style
|
||||
* @param array|\PhpOffice\PhpWord\Style\AbstractStyle $value
|
||||
* @param AbstractStyle $style
|
||||
* @param AbstractStyle|array $value
|
||||
*
|
||||
* @return \PhpOffice\PhpWord\Style\AbstractStyle
|
||||
* @return AbstractStyle
|
||||
*/
|
||||
private static function setStyleValues($name, $style, $value = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user