@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | * Set datastore instance |
| 441 | 441 | * |
| 442 | 442 | * @param Datastore_Interface $datastore |
| 443 | - * @return object $this |
|
| 443 | + * @return Field $this |
|
| 444 | 444 | **/ |
| 445 | 445 | public function set_datastore( Datastore_Interface $datastore, $set_as_default = false ) { |
| 446 | 446 | if ( $set_as_default && ! $this->has_default_datastore() ) { |
@@ -464,7 +464,7 @@ discard block |
||
| 464 | 464 | * Assign the type of the container this field is in |
| 465 | 465 | * |
| 466 | 466 | * @param string |
| 467 | - * @return object $this |
|
| 467 | + * @return Field $this |
|
| 468 | 468 | **/ |
| 469 | 469 | public function set_context( $context ) { |
| 470 | 470 | $this->context = $context; |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | /** |
| 505 | 505 | * Return a differently formatted value for end-users |
| 506 | 506 | * |
| 507 | - * @return mixed |
|
| 507 | + * @return string |
|
| 508 | 508 | **/ |
| 509 | 509 | public function get_formatted_value() { |
| 510 | 510 | $value = $this->get_value(); |
@@ -646,7 +646,7 @@ discard block |
||
| 646 | 646 | * Set additional text to be displayed during field render, |
| 647 | 647 | * containing information and guidance for the user |
| 648 | 648 | * |
| 649 | - * @return object $this |
|
| 649 | + * @return Field $this |
|
| 650 | 650 | **/ |
| 651 | 651 | public function set_help_text( $help_text ) { |
| 652 | 652 | $this->help_text = $help_text; |
@@ -657,7 +657,7 @@ discard block |
||
| 657 | 657 | * Alias for set_help_text() |
| 658 | 658 | * |
| 659 | 659 | * @see set_help_text() |
| 660 | - * @return object $this |
|
| 660 | + * @return Field $this |
|
| 661 | 661 | **/ |
| 662 | 662 | public function help_text( $help_text ) { |
| 663 | 663 | return $this->set_help_text( $help_text ); |
@@ -666,7 +666,7 @@ discard block |
||
| 666 | 666 | /** |
| 667 | 667 | * Return the field help text |
| 668 | 668 | * |
| 669 | - * @return object $this |
|
| 669 | + * @return string $this |
|
| 670 | 670 | **/ |
| 671 | 671 | public function get_help_text() { |
| 672 | 672 | return $this->help_text; |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | * Whether or not this value should be auto loaded. Applicable to theme options only. |
| 677 | 677 | * |
| 678 | 678 | * @param bool $autoload |
| 679 | - * @return object $this |
|
| 679 | + * @return Field $this |
|
| 680 | 680 | **/ |
| 681 | 681 | public function set_autoload( $autoload ) { |
| 682 | 682 | $this->autoload = $autoload; |
@@ -696,7 +696,7 @@ discard block |
||
| 696 | 696 | * Whether or not this field will be initialized when the field is in the viewport (visible). |
| 697 | 697 | * |
| 698 | 698 | * @param bool $lazyload |
| 699 | - * @return object $this |
|
| 699 | + * @return Field $this |
|
| 700 | 700 | **/ |
| 701 | 701 | public function set_lazyload( $lazyload ) { |
| 702 | 702 | $this->lazyload = $lazyload; |
@@ -716,7 +716,7 @@ discard block |
||
| 716 | 716 | * Set the field width. |
| 717 | 717 | * |
| 718 | 718 | * @param int $width |
| 719 | - * @return object $this |
|
| 719 | + * @return Field $this |
|
| 720 | 720 | **/ |
| 721 | 721 | public function set_width( $width ) { |
| 722 | 722 | $this->width = (int) $width; |
@@ -736,7 +736,7 @@ discard block |
||
| 736 | 736 | * Add custom CSS class to the field html container. |
| 737 | 737 | * |
| 738 | 738 | * @param string|array $classes |
| 739 | - * @return object $this |
|
| 739 | + * @return Field $this |
|
| 740 | 740 | **/ |
| 741 | 741 | public function add_class( $classes ) { |
| 742 | 742 | if ( ! is_array( $classes ) ) { |
@@ -760,7 +760,7 @@ discard block |
||
| 760 | 760 | * Whether this field is mandatory for the user |
| 761 | 761 | * |
| 762 | 762 | * @param bool $required |
| 763 | - * @return object $this |
|
| 763 | + * @return Field $this |
|
| 764 | 764 | **/ |
| 765 | 765 | public function set_required( $required = true ) { |
| 766 | 766 | $this->required = $required; |
@@ -809,6 +809,7 @@ discard block |
||
| 809 | 809 | /** |
| 810 | 810 | * Cleans up an object class for usage as HTML class |
| 811 | 811 | * |
| 812 | + * @param string $type |
|
| 812 | 813 | * @return string |
| 813 | 814 | */ |
| 814 | 815 | protected function clean_type( $type ) { |
@@ -826,7 +827,7 @@ discard block |
||
| 826 | 827 | /** |
| 827 | 828 | * Return an array of html classes to be used for the field container |
| 828 | 829 | * |
| 829 | - * @return array |
|
| 830 | + * @return string[] |
|
| 830 | 831 | */ |
| 831 | 832 | public function get_html_class() { |
| 832 | 833 | $html_classes = array(); |