Yoast\WP\SEO\Task_List\Domain\Data
Content_Item_Score_Data::__construct
Constructs the content item data.
Метод класса: Content_Item_Score_Data{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Content_Item_Score_Data = new Content_Item_Score_Data(); $Content_Item_Score_Data->__construct( $content_id, $title, $score, $content_type );
- $content_id(int) (обязательный)
- The content item ID.
- $title(строка) (обязательный)
- The content item title.
- $score(строка) (обязательный)
- The score.
- $content_type(строка) (обязательный)
- The content type.
Код Content_Item_Score_Data::__construct() Content Item Score Data:: construct Yoast 28.9
public function __construct( int $content_id, string $title, string $score, string $content_type ) {
$this->content_id = $content_id;
$this->title = $title;
$this->score = $score;
$this->content_type = $content_type;
}