Complex classes like PageSeoTranslation often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use PageSeoTranslation, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 18 | class PageSeoTranslation |
||
| 19 | { |
||
| 20 | use Translation; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | * |
||
| 25 | * @ORM\Column(name="meta_title", type="string", nullable=true) |
||
| 26 | * @Assert\Length(max = 60) |
||
| 27 | */ |
||
| 28 | protected $metaTitle; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | * |
||
| 33 | * @ORM\Column(name="meta_description", type="string", length=255, nullable=true) |
||
| 34 | * @Assert\Length(max = 155) |
||
| 35 | */ |
||
| 36 | protected $metaDescription; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var string |
||
| 40 | * |
||
| 41 | * @ORM\Column(name="rel_author", type="string", length=255, nullable=true) |
||
| 42 | */ |
||
| 43 | protected $relAuthor; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var string |
||
| 47 | * |
||
| 48 | * @ORM\Column(name="rel_publisher", type="string", length=255, nullable=true) |
||
| 49 | */ |
||
| 50 | protected $relPublisher; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @var string |
||
| 54 | * |
||
| 55 | * @ORM\Column(name="ogTitle", type="string", length=255, nullable=true) |
||
| 56 | */ |
||
| 57 | protected $ogTitle; |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @var string |
||
| 61 | * |
||
| 62 | * @ORM\Column(name="ogType", type="string", length=255, nullable=true) |
||
| 63 | */ |
||
| 64 | protected $ogType; |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @var string |
||
| 68 | * |
||
| 69 | * @ORM\ManyToOne(targetEntity="\Victoire\Bundle\MediaBundle\Entity\Media") |
||
| 70 | * @ORM\JoinColumn(name="ogImage_id", referencedColumnName="id", onDelete="SET NULL") |
||
| 71 | */ |
||
| 72 | protected $ogImage; |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @var string |
||
| 76 | * |
||
| 77 | * @ORM\Column(name="ogUrl", type="string", length=255, nullable=true) |
||
| 78 | */ |
||
| 79 | protected $ogUrl; |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @var text |
||
| 83 | * |
||
| 84 | * @ORM\Column(name="ogDescription", type="text", nullable=true) |
||
| 85 | */ |
||
| 86 | protected $ogDescription; |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @var string |
||
| 90 | * |
||
| 91 | * @ORM\Column(name="fbAdmins", type="string", length=255, nullable=true) |
||
| 92 | */ |
||
| 93 | protected $fbAdmins; |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @var string |
||
| 97 | * |
||
| 98 | * @ORM\Column(name="twitterCard", type="string", length=255, nullable=true) |
||
| 99 | */ |
||
| 100 | protected $twitterCard = 'summary'; |
||
| 101 | |||
| 102 | /** |
||
| 103 | * @var string |
||
| 104 | * |
||
| 105 | * @ORM\Column(name="twitterUrl", type="string", length=255, nullable=true) |
||
| 106 | * @Assert\Length(max = 15) |
||
| 107 | */ |
||
| 108 | protected $twitterUrl; |
||
| 109 | |||
| 110 | /** |
||
| 111 | * @var string |
||
| 112 | * |
||
| 113 | * @ORM\Column(name="twitterCreator", type="string", length=255, nullable=true) |
||
| 114 | * @Assert\Length(max = 15) |
||
| 115 | */ |
||
| 116 | protected $twitterCreator; |
||
| 117 | |||
| 118 | /** |
||
| 119 | * @var string |
||
| 120 | * |
||
| 121 | * @ORM\Column(name="twitterTitle", type="string", length=255, nullable=true) |
||
| 122 | * @Assert\Length(max = 70) |
||
| 123 | */ |
||
| 124 | protected $twitterTitle; |
||
| 125 | |||
| 126 | /** |
||
| 127 | * @var string |
||
| 128 | * |
||
| 129 | * @ORM\Column(name="twitterDescription", type="string", length=255, nullable=true) |
||
| 130 | * @Assert\Length(max = 200) |
||
| 131 | */ |
||
| 132 | protected $twitterDescription; |
||
| 133 | |||
| 134 | /** |
||
| 135 | * @var string |
||
| 136 | * |
||
| 137 | * @ORM\ManyToOne(targetEntity="\Victoire\Bundle\MediaBundle\Entity\Media") |
||
| 138 | * @ORM\JoinColumn(name="twitterImage_id", referencedColumnName="id", onDelete="SET NULL") |
||
| 139 | */ |
||
| 140 | protected $twitterImage; |
||
| 141 | |||
| 142 | /** |
||
| 143 | * @var string |
||
| 144 | * |
||
| 145 | * @ORM\Column(name="schemaPageType", type="string", length=255, nullable=true) |
||
| 146 | */ |
||
| 147 | protected $schemaPageType; |
||
| 148 | |||
| 149 | /** |
||
| 150 | * @var string |
||
| 151 | * |
||
| 152 | * @ORM\Column(name="schemaName", type="string", length=255, nullable=true) |
||
| 153 | */ |
||
| 154 | protected $schemaName; |
||
| 155 | |||
| 156 | /** |
||
| 157 | * @var string |
||
| 158 | * |
||
| 159 | * @ORM\Column(name="schemaDescription", type="string", length=255, nullable=true) |
||
| 160 | */ |
||
| 161 | protected $schemaDescription; |
||
| 162 | |||
| 163 | /** |
||
| 164 | * @var string |
||
| 165 | * |
||
| 166 | * @ORM\ManyToOne(targetEntity="\Victoire\Bundle\MediaBundle\Entity\Media") |
||
| 167 | * @ORM\JoinColumn(name="schemaImage_id", referencedColumnName="id", onDelete="SET NULL") |
||
| 168 | */ |
||
| 169 | protected $schemaImage; |
||
| 170 | |||
| 171 | /** |
||
| 172 | * @var string |
||
| 173 | * |
||
| 174 | * @ORM\Column(name="meta_robots_index", type="string", length=255, nullable=true) |
||
| 175 | */ |
||
| 176 | protected $metaRobotsIndex; |
||
| 177 | |||
| 178 | /** |
||
| 179 | * @var string |
||
| 180 | * |
||
| 181 | * @ORM\Column(name="meta_robots_follow", type="string", length=255, nullable=true) |
||
| 182 | */ |
||
| 183 | protected $metaRobotsFollow; |
||
| 184 | |||
| 185 | /** |
||
| 186 | * @var string |
||
| 187 | * |
||
| 188 | * @ORM\Column(name="meta_robots_advanced", type="string", length=255, nullable=true) |
||
| 189 | */ |
||
| 190 | protected $metaRobotsAdvanced; |
||
| 191 | |||
| 192 | /** |
||
| 193 | * @var bool |
||
| 194 | * |
||
| 195 | * @ORM\Column(name="sitemap_indexed", type="boolean", nullable=true, options={"default" = true}) |
||
| 196 | */ |
||
| 197 | protected $sitemapIndexed = true; |
||
| 198 | |||
| 199 | /** |
||
| 200 | * @var float |
||
| 201 | * |
||
| 202 | * @ORM\Column(name="sitemap_priority", type="float", nullable=true, options={"default" = "0.8"}) |
||
| 203 | */ |
||
| 204 | protected $sitemapPriority = 0.8; |
||
| 205 | |||
| 206 | /** |
||
| 207 | * @var string |
||
| 208 | * |
||
| 209 | * @ORM\Column(name="sitemap_changeFreq", type="string", length=20, nullable=true, options={"default" = "monthly"}) |
||
| 210 | */ |
||
| 211 | protected $sitemapChangeFreq = 'monthly'; |
||
| 212 | |||
| 213 | /** |
||
| 214 | * @var string |
||
| 215 | * |
||
| 216 | * @ORM\Column(name="rel_canonical", type="string", length=255, nullable=true) |
||
| 217 | */ |
||
| 218 | protected $relCanonical; |
||
| 219 | |||
| 220 | /** |
||
| 221 | * @var string |
||
| 222 | * |
||
| 223 | * @ORM\Column(name="keyword", type="string", length=255, nullable=true) |
||
| 224 | */ |
||
| 225 | protected $keyword; |
||
| 226 | |||
| 227 | /** |
||
| 228 | * @var string |
||
| 229 | * |
||
| 230 | * @ORM\ManyToOne(targetEntity="Victoire\Bundle\CoreBundle\Entity\Link", inversedBy="referers", cascade={"persist"}) |
||
| 231 | * @ORM\JoinColumn(name="redirect_to", referencedColumnName="id", onDelete="SET NULL") |
||
| 232 | */ |
||
| 233 | protected $redirectTo; |
||
| 234 | |||
| 235 | /** |
||
| 236 | * Get id. |
||
| 237 | * |
||
| 238 | * @return int |
||
| 239 | */ |
||
| 240 | public function getId() |
||
| 244 | |||
| 245 | /** |
||
| 246 | * Set redirectTo. |
||
| 247 | * |
||
| 248 | * @param View $redirectTo |
||
| 249 | * |
||
| 250 | * @return PageSeo |
||
| 251 | */ |
||
| 252 | public function setRedirectTo(Link $redirectTo) |
||
| 258 | |||
| 259 | /** |
||
| 260 | * Get redirectTo. |
||
| 261 | * |
||
| 262 | * @return string |
||
| 263 | */ |
||
| 264 | public function getRedirectTo() |
||
| 268 | |||
| 269 | /** |
||
| 270 | * Set metaTitle. |
||
| 271 | * |
||
| 272 | * @param string $metaTitle |
||
| 273 | * |
||
| 274 | * @return PageSeo |
||
| 275 | */ |
||
| 276 | public function setMetaTitle($metaTitle) |
||
| 282 | |||
| 283 | /** |
||
| 284 | * Get metaTitle. |
||
| 285 | * |
||
| 286 | * @return string |
||
| 287 | */ |
||
| 288 | public function getMetaTitle() |
||
| 292 | |||
| 293 | /** |
||
| 294 | * Set metaDescription. |
||
| 295 | * |
||
| 296 | * @param string $metaDescription |
||
| 297 | * |
||
| 298 | * @return PageSeo |
||
| 299 | */ |
||
| 300 | public function setMetaDescription($metaDescription) |
||
| 306 | |||
| 307 | /** |
||
| 308 | * Get metaDescription. |
||
| 309 | * |
||
| 310 | * @return string |
||
| 311 | */ |
||
| 312 | public function getMetaDescription() |
||
| 316 | |||
| 317 | /** |
||
| 318 | * Set relAuthor. |
||
| 319 | * |
||
| 320 | * @param string $relAuthor |
||
| 321 | * |
||
| 322 | * @return PageSeo |
||
| 323 | */ |
||
| 324 | public function setRelAuthor($relAuthor) |
||
| 330 | |||
| 331 | /** |
||
| 332 | * Get relAuthor. |
||
| 333 | * |
||
| 334 | * @return string |
||
| 335 | */ |
||
| 336 | public function getRelAuthor() |
||
| 340 | |||
| 341 | /** |
||
| 342 | * Set relPublisher. |
||
| 343 | * |
||
| 344 | * @param string $relPublisher |
||
| 345 | * |
||
| 346 | * @return PageSeo |
||
| 347 | */ |
||
| 348 | public function setRelPublisher($relPublisher) |
||
| 354 | |||
| 355 | /** |
||
| 356 | * Get relPublisher. |
||
| 357 | * |
||
| 358 | * @return string |
||
| 359 | */ |
||
| 360 | public function getRelPublisher() |
||
| 364 | |||
| 365 | /** |
||
| 366 | * Set ogTitle. |
||
| 367 | * |
||
| 368 | * @param string $ogTitle |
||
| 369 | * |
||
| 370 | * @return PageSeo |
||
| 371 | */ |
||
| 372 | public function setOgTitle($ogTitle) |
||
| 378 | |||
| 379 | /** |
||
| 380 | * Get ogTitle. |
||
| 381 | * |
||
| 382 | * @return string |
||
| 383 | */ |
||
| 384 | public function getOgTitle() |
||
| 388 | |||
| 389 | /** |
||
| 390 | * Set ogType. |
||
| 391 | * |
||
| 392 | * @param string $ogType |
||
| 393 | * |
||
| 394 | * @return PageSeo |
||
| 395 | */ |
||
| 396 | public function setOgType($ogType) |
||
| 402 | |||
| 403 | /** |
||
| 404 | * Get ogType. |
||
| 405 | * |
||
| 406 | * @return string |
||
| 407 | */ |
||
| 408 | public function getOgType() |
||
| 412 | |||
| 413 | /** |
||
| 414 | * Set ogImage. |
||
| 415 | * |
||
| 416 | * @param Image $ogImage |
||
| 417 | * |
||
| 418 | * @return PageSeo |
||
| 419 | */ |
||
| 420 | public function setOgImage($ogImage) |
||
| 426 | |||
| 427 | /** |
||
| 428 | * Get ogImage. |
||
| 429 | * |
||
| 430 | * @return string |
||
| 431 | */ |
||
| 432 | public function getOgImage() |
||
| 436 | |||
| 437 | /** |
||
| 438 | * Set ogUrl. |
||
| 439 | * |
||
| 440 | * @param string $ogUrl |
||
| 441 | * |
||
| 442 | * @return PageSeo |
||
| 443 | */ |
||
| 444 | public function setOgUrl($ogUrl) |
||
| 450 | |||
| 451 | /** |
||
| 452 | * Get ogUrl. |
||
| 453 | * |
||
| 454 | * @return string |
||
| 455 | */ |
||
| 456 | public function getOgUrl() |
||
| 460 | |||
| 461 | /** |
||
| 462 | * Set ogDescription. |
||
| 463 | * |
||
| 464 | * @param string $ogDescription |
||
| 465 | * |
||
| 466 | * @return PageSeo |
||
| 467 | */ |
||
| 468 | public function setOgDescription($ogDescription) |
||
| 474 | |||
| 475 | /** |
||
| 476 | * Get ogDescription. |
||
| 477 | * |
||
| 478 | * @return string |
||
| 479 | */ |
||
| 480 | public function getOgDescription() |
||
| 484 | |||
| 485 | /** |
||
| 486 | * Set fbAdmins. |
||
| 487 | * |
||
| 488 | * @param string $fbAdmins |
||
| 489 | * |
||
| 490 | * @return PageSeo |
||
| 491 | */ |
||
| 492 | public function setFbAdmins($fbAdmins) |
||
| 498 | |||
| 499 | /** |
||
| 500 | * Get fbAdmins. |
||
| 501 | * |
||
| 502 | * @return string |
||
| 503 | */ |
||
| 504 | public function getFbAdmins() |
||
| 508 | |||
| 509 | /** |
||
| 510 | * Set twitterCard. |
||
| 511 | * |
||
| 512 | * @param string $twitterCard |
||
| 513 | * |
||
| 514 | * @return PageSeo |
||
| 515 | */ |
||
| 516 | public function setTwitterCard($twitterCard) |
||
| 522 | |||
| 523 | /** |
||
| 524 | * Get twitterCard. |
||
| 525 | * |
||
| 526 | * @return string |
||
| 527 | */ |
||
| 528 | public function getTwitterCard() |
||
| 532 | |||
| 533 | /** |
||
| 534 | * Set twitterUrl. |
||
| 535 | * |
||
| 536 | * @param string $twitterUrl |
||
| 537 | * |
||
| 538 | * @return PageSeo |
||
| 539 | */ |
||
| 540 | public function setTwitterUrl($twitterUrl) |
||
| 546 | |||
| 547 | /** |
||
| 548 | * Get twitterUrl. |
||
| 549 | * |
||
| 550 | * @return string |
||
| 551 | */ |
||
| 552 | public function getTwitterUrl() |
||
| 556 | |||
| 557 | /** |
||
| 558 | * Set twitterCreator. |
||
| 559 | * |
||
| 560 | * @param string $twitterCreator |
||
| 561 | * |
||
| 562 | * @return PageSeo |
||
| 563 | */ |
||
| 564 | public function setTwitterCreator($twitterCreator) |
||
| 570 | |||
| 571 | /** |
||
| 572 | * Get twitterCreator. |
||
| 573 | * |
||
| 574 | * @return string |
||
| 575 | */ |
||
| 576 | public function getTwitterCreator() |
||
| 580 | |||
| 581 | /** |
||
| 582 | * Set twitterTitle. |
||
| 583 | * |
||
| 584 | * @param string $twitterTitle |
||
| 585 | * |
||
| 586 | * @return PageSeo |
||
| 587 | */ |
||
| 588 | public function setTwitterTitle($twitterTitle) |
||
| 594 | |||
| 595 | /** |
||
| 596 | * Get twitterTitle. |
||
| 597 | * |
||
| 598 | * @return string |
||
| 599 | */ |
||
| 600 | public function getTwitterTitle() |
||
| 604 | |||
| 605 | /** |
||
| 606 | * Set twitterDescription. |
||
| 607 | * |
||
| 608 | * @param string $twitterDescription |
||
| 609 | * |
||
| 610 | * @return PageSeo |
||
| 611 | */ |
||
| 612 | public function setTwitterDescription($twitterDescription) |
||
| 618 | |||
| 619 | /** |
||
| 620 | * Get twitterDescription. |
||
| 621 | * |
||
| 622 | * @return string |
||
| 623 | */ |
||
| 624 | public function getTwitterDescription() |
||
| 628 | |||
| 629 | /** |
||
| 630 | * Set twitterImage. |
||
| 631 | * |
||
| 632 | * @param Image $twitterImage |
||
| 633 | * |
||
| 634 | * @return PageSeo |
||
| 635 | */ |
||
| 636 | public function setTwitterImage($twitterImage) |
||
| 642 | |||
| 643 | /** |
||
| 644 | * Get twitterImage. |
||
| 645 | * |
||
| 646 | * @return string |
||
| 647 | */ |
||
| 648 | public function getTwitterImage() |
||
| 652 | |||
| 653 | /** |
||
| 654 | * Set schemaPageType. |
||
| 655 | * |
||
| 656 | * @param string $schemaPageType |
||
| 657 | * |
||
| 658 | * @return PageSeo |
||
| 659 | */ |
||
| 660 | public function setSchemaPageType($schemaPageType) |
||
| 666 | |||
| 667 | /** |
||
| 668 | * Get schemaPageType. |
||
| 669 | * |
||
| 670 | * @return string |
||
| 671 | */ |
||
| 672 | public function getSchemaPageType() |
||
| 676 | |||
| 677 | /** |
||
| 678 | * Set schemaName. |
||
| 679 | * |
||
| 680 | * @param string $schemaName |
||
| 681 | * |
||
| 682 | * @return PageSeo |
||
| 683 | */ |
||
| 684 | public function setSchemaName($schemaName) |
||
| 690 | |||
| 691 | /** |
||
| 692 | * Get schemaName. |
||
| 693 | * |
||
| 694 | * @return string |
||
| 695 | */ |
||
| 696 | public function getSchemaName() |
||
| 700 | |||
| 701 | /** |
||
| 702 | * Set schemaDescription. |
||
| 703 | * |
||
| 704 | * @param string $schemaDescription |
||
| 705 | * |
||
| 706 | * @return PageSeo |
||
| 707 | */ |
||
| 708 | public function setSchemaDescription($schemaDescription) |
||
| 714 | |||
| 715 | /** |
||
| 716 | * Get schemaDescription. |
||
| 717 | * |
||
| 718 | * @return string |
||
| 719 | */ |
||
| 720 | public function getSchemaDescription() |
||
| 724 | |||
| 725 | /** |
||
| 726 | * Set schemaImage. |
||
| 727 | * |
||
| 728 | * @param Image $schemaImage |
||
| 729 | * |
||
| 730 | * @return PageSeo |
||
| 731 | */ |
||
| 732 | public function setSchemaImage($schemaImage) |
||
| 738 | |||
| 739 | /** |
||
| 740 | * Get schemaImage. |
||
| 741 | * |
||
| 742 | * @return string |
||
| 743 | */ |
||
| 744 | public function getSchemaImage() |
||
| 748 | |||
| 749 | /** |
||
| 750 | * Set metaRobotsIndex. |
||
| 751 | * |
||
| 752 | * @param string $metaRobotsIndex |
||
| 753 | * |
||
| 754 | * @return PageSeo |
||
| 755 | */ |
||
| 756 | public function setMetaRobotsIndex($metaRobotsIndex) |
||
| 762 | |||
| 763 | /** |
||
| 764 | * Get metaRobotsIndex. |
||
| 765 | * |
||
| 766 | * @return string |
||
| 767 | */ |
||
| 768 | public function getMetaRobotsIndex() |
||
| 772 | |||
| 773 | /** |
||
| 774 | * Set metaRobotsFollow. |
||
| 775 | * |
||
| 776 | * @param string $metaRobotsFollow |
||
| 777 | * |
||
| 778 | * @return PageSeo |
||
| 779 | */ |
||
| 780 | public function setMetaRobotsFollow($metaRobotsFollow) |
||
| 786 | |||
| 787 | /** |
||
| 788 | * Get metaRobotsFollow. |
||
| 789 | * |
||
| 790 | * @return string |
||
| 791 | */ |
||
| 792 | public function getMetaRobotsFollow() |
||
| 796 | |||
| 797 | /** |
||
| 798 | * Set metaRobotsAdvanced. |
||
| 799 | * |
||
| 800 | * @param string $metaRobotsAdvanced |
||
| 801 | * |
||
| 802 | * @return PageSeo |
||
| 803 | */ |
||
| 804 | public function setMetaRobotsAdvanced($metaRobotsAdvanced) |
||
| 810 | |||
| 811 | /** |
||
| 812 | * Get metaRobotsAdvanced. |
||
| 813 | * |
||
| 814 | * @return string |
||
| 815 | */ |
||
| 816 | public function getMetaRobotsAdvanced() |
||
| 820 | |||
| 821 | /** |
||
| 822 | * Set sitemapIndexed. |
||
| 823 | * |
||
| 824 | * @param bool $sitemapIndexed |
||
| 825 | * |
||
| 826 | * @return PageSeo |
||
| 827 | */ |
||
| 828 | public function setSitemapIndexed($sitemapIndexed) |
||
| 834 | |||
| 835 | /** |
||
| 836 | * Get sitemapIndexed. |
||
| 837 | * |
||
| 838 | * @return bool |
||
| 839 | */ |
||
| 840 | public function isSitemapIndexed() |
||
| 844 | |||
| 845 | /** |
||
| 846 | * Set sitemapPriority. |
||
| 847 | * |
||
| 848 | * @param float $sitemapPriority |
||
| 849 | * |
||
| 850 | * @return PageSeo |
||
| 851 | */ |
||
| 852 | public function setSitemapPriority($sitemapPriority) |
||
| 858 | |||
| 859 | /** |
||
| 860 | * Get sitemapPriority. |
||
| 861 | * |
||
| 862 | * @return float |
||
| 863 | */ |
||
| 864 | public function getSitemapPriority() |
||
| 868 | |||
| 869 | /** |
||
| 870 | * Set sitemapChangeFreq. |
||
| 871 | * |
||
| 872 | * @param float $sitemapChangeFreq |
||
| 873 | * |
||
| 874 | * @return PageSeo |
||
| 875 | */ |
||
| 876 | public function setSitemapChangeFreq($sitemapChangeFreq) |
||
| 882 | |||
| 883 | /** |
||
| 884 | * Get sitemapChangeFreq. |
||
| 885 | * |
||
| 886 | * @return float |
||
| 887 | */ |
||
| 888 | public function getSitemapChangeFreq() |
||
| 892 | |||
| 893 | /** |
||
| 894 | * Set relCanonical. |
||
| 895 | * |
||
| 896 | * @param string $relCanonical |
||
| 897 | * |
||
| 898 | * @return PageSeo |
||
| 899 | */ |
||
| 900 | public function setRelCanonical($relCanonical) |
||
| 906 | |||
| 907 | /** |
||
| 908 | * Get relCanonical. |
||
| 909 | * |
||
| 910 | * @return string |
||
| 911 | */ |
||
| 912 | public function getRelCanonical() |
||
| 916 | |||
| 917 | /** |
||
| 918 | * Set keyword. |
||
| 919 | * |
||
| 920 | * @param string $keyword |
||
| 921 | * |
||
| 922 | * @return PageSeo |
||
| 923 | */ |
||
| 924 | public function setKeyword($keyword) |
||
| 930 | |||
| 931 | /** |
||
| 932 | * Get keyword. |
||
| 933 | * |
||
| 934 | * @return string |
||
| 935 | */ |
||
| 936 | public function getKeyword() |
||
| 940 | } |
||
| 941 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..