Complex classes like PageSeo 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 PageSeo, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 17 | class PageSeo |
||
| 18 | { |
||
| 19 | use \Gedmo\Timestampable\Traits\TimestampableEntity; |
||
| 20 | use Translatable; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var int |
||
| 24 | * |
||
| 25 | * @ORM\Column(name="id", type="integer") |
||
| 26 | * @ORM\Id |
||
| 27 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 28 | */ |
||
| 29 | protected $id; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | * |
||
| 34 | * @deprecated Remove Doctrine mapping |
||
| 35 | * |
||
| 36 | * @ORM\Column(name="meta_title", type="string", nullable=true) |
||
| 37 | * @Assert\Length(max = 65) |
||
| 38 | */ |
||
| 39 | protected $metaTitle; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var string |
||
| 43 | * |
||
| 44 | * @deprecated Remove Doctrine mapping |
||
| 45 | * |
||
| 46 | * @ORM\Column(name="meta_description", type="string", length=255, nullable=true) |
||
| 47 | * @Assert\Length(max = 155) |
||
| 48 | */ |
||
| 49 | protected $metaDescription; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @var string |
||
| 53 | * |
||
| 54 | * @deprecated Remove Doctrine mapping |
||
| 55 | * |
||
| 56 | * @ORM\Column(name="rel_author", type="string", length=255, nullable=true) |
||
| 57 | */ |
||
| 58 | protected $relAuthor; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @var string |
||
| 62 | * |
||
| 63 | * @deprecated Remove Doctrine mapping |
||
| 64 | * |
||
| 65 | * @ORM\Column(name="rel_publisher", type="string", length=255, nullable=true) |
||
| 66 | */ |
||
| 67 | protected $relPublisher; |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @var string |
||
| 71 | * |
||
| 72 | * @deprecated Remove Doctrine mapping |
||
| 73 | * |
||
| 74 | * @ORM\Column(name="ogTitle", type="string", length=255, nullable=true) |
||
| 75 | */ |
||
| 76 | protected $ogTitle; |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @var string |
||
| 80 | * |
||
| 81 | * @deprecated Remove Doctrine mapping |
||
| 82 | * |
||
| 83 | * @ORM\Column(name="ogType", type="string", length=255, nullable=true) |
||
| 84 | */ |
||
| 85 | protected $ogType; |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @var string |
||
| 89 | * |
||
| 90 | * @deprecated Remove Doctrine mapping |
||
| 91 | * |
||
| 92 | * @ORM\ManyToOne(targetEntity="\Victoire\Bundle\MediaBundle\Entity\Media") |
||
| 93 | * @ORM\JoinColumn(name="ogImage_id", referencedColumnName="id", onDelete="SET NULL") |
||
| 94 | */ |
||
| 95 | protected $ogImage; |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @var string |
||
| 99 | * |
||
| 100 | * @deprecated Remove Doctrine mapping |
||
| 101 | * |
||
| 102 | * @ORM\Column(name="ogUrl", type="string", length=255, nullable=true) |
||
| 103 | */ |
||
| 104 | protected $ogUrl; |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @var text |
||
| 108 | * |
||
| 109 | * @deprecated Remove Doctrine mapping |
||
| 110 | * |
||
| 111 | * @ORM\Column(name="ogDescription", type="text", nullable=true) |
||
| 112 | */ |
||
| 113 | protected $ogDescription; |
||
| 114 | |||
| 115 | /** |
||
| 116 | * @var string |
||
| 117 | * |
||
| 118 | * @deprecated Remove Doctrine mapping |
||
| 119 | * |
||
| 120 | * @ORM\Column(name="fbAdmins", type="string", length=255, nullable=true) |
||
| 121 | */ |
||
| 122 | protected $fbAdmins; |
||
| 123 | |||
| 124 | /** |
||
| 125 | * @var string |
||
| 126 | * |
||
| 127 | * @deprecated Remove Doctrine mapping |
||
| 128 | * |
||
| 129 | * @ORM\Column(name="twitterCard", type="string", length=255, nullable=true) |
||
| 130 | */ |
||
| 131 | protected $twitterCard = 'summary'; |
||
| 132 | |||
| 133 | /** |
||
| 134 | * @var string |
||
| 135 | * |
||
| 136 | * @deprecated Remove Doctrine mapping |
||
| 137 | * |
||
| 138 | * @ORM\Column(name="twitterUrl", type="string", length=255, nullable=true) |
||
| 139 | * @Assert\Length(max = 15) |
||
| 140 | */ |
||
| 141 | protected $twitterUrl; |
||
| 142 | |||
| 143 | /** |
||
| 144 | * @var string |
||
| 145 | * |
||
| 146 | * @deprecated Remove Doctrine mapping |
||
| 147 | * |
||
| 148 | * @ORM\Column(name="twitterCreator", type="string", length=255, nullable=true) |
||
| 149 | * @Assert\Length(max = 15) |
||
| 150 | */ |
||
| 151 | protected $twitterCreator; |
||
| 152 | |||
| 153 | /** |
||
| 154 | * @var string |
||
| 155 | * |
||
| 156 | * @deprecated Remove Doctrine mapping |
||
| 157 | * |
||
| 158 | * @ORM\Column(name="twitterTitle", type="string", length=255, nullable=true) |
||
| 159 | * @Assert\Length(max = 70) |
||
| 160 | */ |
||
| 161 | protected $twitterTitle; |
||
| 162 | |||
| 163 | /** |
||
| 164 | * @var string |
||
| 165 | * |
||
| 166 | * @deprecated Remove Doctrine mapping |
||
| 167 | * |
||
| 168 | * @ORM\Column(name="twitterDescription", type="string", length=255, nullable=true) |
||
| 169 | * @Assert\Length(max = 200) |
||
| 170 | */ |
||
| 171 | protected $twitterDescription; |
||
| 172 | |||
| 173 | /** |
||
| 174 | * @var string |
||
| 175 | * |
||
| 176 | * @deprecated Remove Doctrine mapping |
||
| 177 | * |
||
| 178 | * @ORM\ManyToOne(targetEntity="\Victoire\Bundle\MediaBundle\Entity\Media") |
||
| 179 | * @ORM\JoinColumn(name="twitterImage_id", referencedColumnName="id", onDelete="SET NULL") |
||
| 180 | */ |
||
| 181 | protected $twitterImage; |
||
| 182 | |||
| 183 | /** |
||
| 184 | * @var string |
||
| 185 | * |
||
| 186 | * @deprecated Remove Doctrine mapping |
||
| 187 | * |
||
| 188 | * @ORM\Column(name="schemaPageType", type="string", length=255, nullable=true) |
||
| 189 | */ |
||
| 190 | protected $schemaPageType; |
||
| 191 | |||
| 192 | /** |
||
| 193 | * @var string |
||
| 194 | * |
||
| 195 | * @deprecated Remove Doctrine mapping |
||
| 196 | * |
||
| 197 | * @ORM\Column(name="schemaName", type="string", length=255, nullable=true) |
||
| 198 | */ |
||
| 199 | protected $schemaName; |
||
| 200 | |||
| 201 | /** |
||
| 202 | * @var string |
||
| 203 | * |
||
| 204 | * @deprecated Remove Doctrine mapping |
||
| 205 | * |
||
| 206 | * @ORM\Column(name="schemaDescription", type="string", length=255, nullable=true) |
||
| 207 | */ |
||
| 208 | protected $schemaDescription; |
||
| 209 | |||
| 210 | /** |
||
| 211 | * @var string |
||
| 212 | * |
||
| 213 | * @deprecated Remove Doctrine mapping |
||
| 214 | * |
||
| 215 | * @ORM\ManyToOne(targetEntity="\Victoire\Bundle\MediaBundle\Entity\Media") |
||
| 216 | * @ORM\JoinColumn(name="schemaImage_id", referencedColumnName="id", onDelete="SET NULL") |
||
| 217 | */ |
||
| 218 | protected $schemaImage; |
||
| 219 | |||
| 220 | /** |
||
| 221 | * @var string |
||
| 222 | * |
||
| 223 | * @deprecated Remove Doctrine mapping |
||
| 224 | * |
||
| 225 | * @ORM\Column(name="meta_robots_index", type="string", length=255, nullable=true) |
||
| 226 | */ |
||
| 227 | protected $metaRobotsIndex; |
||
| 228 | |||
| 229 | /** |
||
| 230 | * @var string |
||
| 231 | * |
||
| 232 | * @deprecated Remove Doctrine mapping |
||
| 233 | * |
||
| 234 | * @ORM\Column(name="meta_robots_follow", type="string", length=255, nullable=true) |
||
| 235 | */ |
||
| 236 | protected $metaRobotsFollow; |
||
| 237 | |||
| 238 | /** |
||
| 239 | * @var string |
||
| 240 | * |
||
| 241 | * @deprecated Remove Doctrine mapping |
||
| 242 | * |
||
| 243 | * @ORM\Column(name="meta_robots_advanced", type="string", length=255, nullable=true) |
||
| 244 | */ |
||
| 245 | protected $metaRobotsAdvanced; |
||
| 246 | |||
| 247 | /** |
||
| 248 | * @var bool |
||
| 249 | * |
||
| 250 | * @deprecated Remove Doctrine mapping |
||
| 251 | * |
||
| 252 | * @ORM\Column(name="sitemap_indexed", type="boolean", nullable=true) |
||
| 253 | */ |
||
| 254 | protected $sitemapIndexed; |
||
| 255 | |||
| 256 | /** |
||
| 257 | * @var float |
||
| 258 | * |
||
| 259 | * @deprecated Remove Doctrine mapping |
||
| 260 | * |
||
| 261 | * @ORM\Column(name="sitemap_priority", type="float", nullable=true) |
||
| 262 | */ |
||
| 263 | protected $sitemapPriority; |
||
| 264 | |||
| 265 | /** |
||
| 266 | * @var string |
||
| 267 | * |
||
| 268 | * @deprecated Remove Doctrine mapping |
||
| 269 | * |
||
| 270 | * @ORM\Column(name="sitemap_changeFreq", type="string", length=20, nullable=true, options={"default" = "monthly"}) |
||
| 271 | */ |
||
| 272 | protected $sitemapChangeFreq = 'monthly'; |
||
| 273 | |||
| 274 | /** |
||
| 275 | * @var string |
||
| 276 | * |
||
| 277 | * @deprecated Remove Doctrine mapping |
||
| 278 | * |
||
| 279 | * @ORM\Column(name="rel_canonical", type="string", length=255, nullable=true) |
||
| 280 | */ |
||
| 281 | protected $relCanonical; |
||
| 282 | |||
| 283 | /** |
||
| 284 | * @var string |
||
| 285 | * |
||
| 286 | * @deprecated Remove Doctrine mapping |
||
| 287 | * |
||
| 288 | * @ORM\Column(name="keyword", type="string", length=255, nullable=true) |
||
| 289 | */ |
||
| 290 | protected $keyword; |
||
| 291 | |||
| 292 | /** |
||
| 293 | * @var string |
||
| 294 | * |
||
| 295 | * @deprecated Remove Doctrine mapping |
||
| 296 | * |
||
| 297 | * @ORM\ManyToOne( |
||
| 298 | * targetEntity="\Victoire\Bundle\PageBundle\Entity\Page", |
||
| 299 | * inversedBy="referers", |
||
| 300 | * cascade={"persist"} |
||
| 301 | * ) |
||
| 302 | * @ORM\JoinColumn(name="redirect_to", referencedColumnName="id", onDelete="SET NULL") |
||
| 303 | */ |
||
| 304 | protected $redirectTo; |
||
| 305 | |||
| 306 | /** |
||
| 307 | * {@inheritdoc} |
||
| 308 | */ |
||
| 309 | public static function getTranslationEntityClass() |
||
| 310 | { |
||
| 311 | return '\\Victoire\\Bundle\\SeoBundle\\Entity\PageSeoTranslation'; |
||
| 312 | } |
||
| 313 | |||
| 314 | /** |
||
|
|
|||
| 315 | * Set redirectTo w/ proxy. |
||
| 316 | * |
||
| 317 | * @param View $redirectTo |
||
| 318 | * |
||
| 319 | * @return PageSeo |
||
| 320 | */ |
||
| 321 | public function setRedirectTo(View $redirectTo, $locale = null) |
||
| 328 | |||
| 329 | /** |
||
| 330 | * Get redirectTo w/ proxy. |
||
| 331 | * |
||
| 332 | * @return string |
||
| 333 | */ |
||
| 334 | public function getRedirectTo() |
||
| 338 | |||
| 339 | /** |
||
| 340 | * Set metaTitle w/ proxy. |
||
| 341 | * |
||
| 342 | * @param string $metaTitle |
||
| 343 | * |
||
| 344 | * @return PageSeo |
||
| 345 | */ |
||
| 346 | public function setMetaTitle($metaTitle, $locale = null) |
||
| 353 | |||
| 354 | /** |
||
| 355 | * Get metaTitle w/ proxy. |
||
| 356 | * |
||
| 357 | * @return string |
||
| 358 | */ |
||
| 359 | public function getMetaTitle() |
||
| 363 | |||
| 364 | /** |
||
| 365 | * Set metaDescription w/ proxy. |
||
| 366 | * |
||
| 367 | * @param string $metaDescription |
||
| 368 | * |
||
| 369 | * @return PageSeo |
||
| 370 | */ |
||
| 371 | public function setMetaDescription($metaDescription, $locale = null) |
||
| 378 | |||
| 379 | /** |
||
| 380 | * Get metaDescription w/ proxy. |
||
| 381 | * |
||
| 382 | * @return string |
||
| 383 | */ |
||
| 384 | public function getMetaDescription() |
||
| 388 | |||
| 389 | /** |
||
| 390 | * Set relAuthor w/ proxy. |
||
| 391 | * |
||
| 392 | * @param string $relAuthor |
||
| 393 | * |
||
| 394 | * @return PageSeo |
||
| 395 | */ |
||
| 396 | public function setRelAuthor($relAuthor, $locale = null) |
||
| 403 | |||
| 404 | /** |
||
| 405 | * Get relAuthor w/ proxy. |
||
| 406 | * |
||
| 407 | * @return string |
||
| 408 | */ |
||
| 409 | public function getRelAuthor() |
||
| 413 | |||
| 414 | /** |
||
| 415 | * Set relPublisher w/ proxy. |
||
| 416 | * |
||
| 417 | * @param string $relPublisher |
||
| 418 | * |
||
| 419 | * @return PageSeo |
||
| 420 | */ |
||
| 421 | public function setRelPublisher($relPublisher, $locale = null) |
||
| 428 | |||
| 429 | /** |
||
| 430 | * Get relPublisher w/ proxy. |
||
| 431 | * |
||
| 432 | * @return string |
||
| 433 | */ |
||
| 434 | public function getRelPublisher() |
||
| 438 | |||
| 439 | /** |
||
| 440 | * Set ogTitle w/ proxy. |
||
| 441 | * |
||
| 442 | * @param string $ogTitle |
||
| 443 | * |
||
| 444 | * @return PageSeo |
||
| 445 | */ |
||
| 446 | public function setOgTitle($ogTitle, $locale = null) |
||
| 453 | |||
| 454 | /** |
||
| 455 | * Get ogTitle w/ proxy. |
||
| 456 | * |
||
| 457 | * @return string |
||
| 458 | */ |
||
| 459 | public function getOgTitle() |
||
| 463 | |||
| 464 | /** |
||
| 465 | * Set ogType w/ proxy. |
||
| 466 | * |
||
| 467 | * @param string $ogType |
||
| 468 | * |
||
| 469 | * @return PageSeo |
||
| 470 | */ |
||
| 471 | public function setOgType($ogType, $locale = null) |
||
| 478 | |||
| 479 | /** |
||
| 480 | * Get ogType w/ proxy. |
||
| 481 | * |
||
| 482 | * @return string |
||
| 483 | */ |
||
| 484 | public function getOgType() |
||
| 488 | |||
| 489 | /** |
||
| 490 | * Set ogImage w/ proxy. |
||
| 491 | * |
||
| 492 | * @param Image $ogImage |
||
| 493 | * |
||
| 494 | * @return PageSeo |
||
| 495 | */ |
||
| 496 | public function setOgImage($ogImage, $locale = null) |
||
| 503 | |||
| 504 | /** |
||
| 505 | * Get ogImage w/ proxy. |
||
| 506 | * |
||
| 507 | * @return string |
||
| 508 | */ |
||
| 509 | public function getOgImage() |
||
| 513 | |||
| 514 | /** |
||
| 515 | * Set ogUrl w/ proxy. |
||
| 516 | * |
||
| 517 | * @param string $ogUrl |
||
| 518 | * |
||
| 519 | * @return PageSeo |
||
| 520 | */ |
||
| 521 | public function setOgUrl($ogUrl, $locale = null) |
||
| 528 | |||
| 529 | /** |
||
| 530 | * Get ogUrl w/ proxy. |
||
| 531 | * |
||
| 532 | * @return string |
||
| 533 | */ |
||
| 534 | public function getOgUrl() |
||
| 538 | |||
| 539 | /** |
||
| 540 | * Set ogDescription w/ proxy. |
||
| 541 | * |
||
| 542 | * @param string $ogDescription |
||
| 543 | * |
||
| 544 | * @return PageSeo |
||
| 545 | */ |
||
| 546 | public function setOgDescription($ogDescription, $locale = null) |
||
| 553 | |||
| 554 | /** |
||
| 555 | * Get ogDescription w/ proxy. |
||
| 556 | * |
||
| 557 | * @return string |
||
| 558 | */ |
||
| 559 | public function getOgDescription() |
||
| 563 | |||
| 564 | /** |
||
| 565 | * Set fbAdmins w/ proxy. |
||
| 566 | * |
||
| 567 | * @param string $fbAdmins |
||
| 568 | * |
||
| 569 | * @return PageSeo |
||
| 570 | */ |
||
| 571 | public function setFbAdmins($fbAdmins, $locale = null) |
||
| 578 | |||
| 579 | /** |
||
| 580 | * Get fbAdmins w/ proxy. |
||
| 581 | * |
||
| 582 | * @return string |
||
| 583 | */ |
||
| 584 | public function getFbAdmins() |
||
| 588 | |||
| 589 | /** |
||
| 590 | * Set twitterCard w/ proxy. |
||
| 591 | * |
||
| 592 | * @param string $twitterCard |
||
| 593 | * |
||
| 594 | * @return PageSeo |
||
| 595 | */ |
||
| 596 | public function setTwitterCard($twitterCard, $locale = null) |
||
| 603 | |||
| 604 | /** |
||
| 605 | * Get twitterCard w/ proxy. |
||
| 606 | * |
||
| 607 | * @return string |
||
| 608 | */ |
||
| 609 | public function getTwitterCard() |
||
| 613 | |||
| 614 | /** |
||
| 615 | * Set twitterUrl w/ proxy. |
||
| 616 | * |
||
| 617 | * @param string $twitterUrl |
||
| 618 | * |
||
| 619 | * @return PageSeo |
||
| 620 | */ |
||
| 621 | public function setTwitterUrl($twitterUrl, $locale = null) |
||
| 628 | |||
| 629 | /** |
||
| 630 | * Get twitterUrl w/ proxy. |
||
| 631 | * |
||
| 632 | * @return string |
||
| 633 | */ |
||
| 634 | public function getTwitterUrl() |
||
| 638 | |||
| 639 | /** |
||
| 640 | * Set twitterCreator w/ proxy. |
||
| 641 | * |
||
| 642 | * @param string $twitterCreator |
||
| 643 | * |
||
| 644 | * @return PageSeo |
||
| 645 | */ |
||
| 646 | public function setTwitterCreator($twitterCreator, $locale = null) |
||
| 653 | |||
| 654 | /** |
||
| 655 | * Get twitterCreator w/ proxy. |
||
| 656 | * |
||
| 657 | * @return string |
||
| 658 | */ |
||
| 659 | public function getTwitterCreator() |
||
| 663 | |||
| 664 | /** |
||
| 665 | * Set twitterTitle w/ proxy. |
||
| 666 | * |
||
| 667 | * @param string $twitterTitle |
||
| 668 | * |
||
| 669 | * @return PageSeo |
||
| 670 | */ |
||
| 671 | public function setTwitterTitle($twitterTitle, $locale = null) |
||
| 678 | |||
| 679 | /** |
||
| 680 | * Get twitterTitle w/ proxy. |
||
| 681 | * |
||
| 682 | * @return string |
||
| 683 | */ |
||
| 684 | public function getTwitterTitle() |
||
| 688 | |||
| 689 | /** |
||
| 690 | * Set twitterDescription w/ proxy. |
||
| 691 | * |
||
| 692 | * @param string $twitterDescription |
||
| 693 | * |
||
| 694 | * @return PageSeo |
||
| 695 | */ |
||
| 696 | public function setTwitterDescription($twitterDescription, $locale = null) |
||
| 703 | |||
| 704 | /** |
||
| 705 | * Get twitterDescription w/ proxy. |
||
| 706 | * |
||
| 707 | * @return string |
||
| 708 | */ |
||
| 709 | public function getTwitterDescription() |
||
| 713 | |||
| 714 | /** |
||
| 715 | * Set twitterImage w/ proxy. |
||
| 716 | * |
||
| 717 | * @param Image $twitterImage |
||
| 718 | * |
||
| 719 | * @return PageSeo |
||
| 720 | */ |
||
| 721 | public function setTwitterImage($twitterImage, $locale = null) |
||
| 728 | |||
| 729 | /** |
||
| 730 | * Get twitterImage w/ proxy. |
||
| 731 | * |
||
| 732 | * @return string |
||
| 733 | */ |
||
| 734 | public function getTwitterImage() |
||
| 738 | |||
| 739 | /** |
||
| 740 | * Set schemaPageType w/ proxy. |
||
| 741 | * |
||
| 742 | * @param string $schemaPageType |
||
| 743 | * |
||
| 744 | * @return PageSeo |
||
| 745 | */ |
||
| 746 | public function setSchemaPageType($schemaPageType, $locale = null) |
||
| 753 | |||
| 754 | /** |
||
| 755 | * Get schemaPageType w/ proxy. |
||
| 756 | * |
||
| 757 | * @return string |
||
| 758 | */ |
||
| 759 | public function getSchemaPageType() |
||
| 763 | |||
| 764 | /** |
||
| 765 | * Set schemaName w/ proxy. |
||
| 766 | * |
||
| 767 | * @param string $schemaName |
||
| 768 | * |
||
| 769 | * @return PageSeo |
||
| 770 | */ |
||
| 771 | public function setSchemaName($schemaName, $locale = null) |
||
| 778 | |||
| 779 | /** |
||
| 780 | * Get schemaName w/ proxy. |
||
| 781 | * |
||
| 782 | * @return string |
||
| 783 | */ |
||
| 784 | public function getSchemaName() |
||
| 788 | |||
| 789 | /** |
||
| 790 | * Set schemaDescription w/ proxy. |
||
| 791 | * |
||
| 792 | * @param string $schemaDescription |
||
| 793 | * |
||
| 794 | * @return PageSeo |
||
| 795 | */ |
||
| 796 | public function setSchemaDescription($schemaDescription, $locale = null) |
||
| 803 | |||
| 804 | /** |
||
| 805 | * Get schemaDescription w/ proxy. |
||
| 806 | * |
||
| 807 | * @return string |
||
| 808 | */ |
||
| 809 | public function getSchemaDescription() |
||
| 813 | |||
| 814 | /** |
||
| 815 | * Set schemaImage w/ proxy. |
||
| 816 | * |
||
| 817 | * @param Image $schemaImage |
||
| 818 | * |
||
| 819 | * @return PageSeo |
||
| 820 | */ |
||
| 821 | public function setSchemaImage($schemaImage, $locale = null) |
||
| 828 | |||
| 829 | /** |
||
| 830 | * Get schemaImage w/ proxy. |
||
| 831 | * |
||
| 832 | * @return string |
||
| 833 | */ |
||
| 834 | public function getSchemaImage() |
||
| 838 | |||
| 839 | /** |
||
| 840 | * Set metaRobotsIndex w/ proxy. |
||
| 841 | * |
||
| 842 | * @param string $metaRobotsIndex |
||
| 843 | * |
||
| 844 | * @return PageSeo |
||
| 845 | */ |
||
| 846 | public function setMetaRobotsIndex($metaRobotsIndex, $locale = null) |
||
| 853 | |||
| 854 | /** |
||
| 855 | * Get metaRobotsIndex w/ proxy. |
||
| 856 | * |
||
| 857 | * @return string |
||
| 858 | */ |
||
| 859 | public function getMetaRobotsIndex() |
||
| 863 | |||
| 864 | /** |
||
| 865 | * Set metaRobotsFollow w/ proxy. |
||
| 866 | * |
||
| 867 | * @param string $metaRobotsFollow |
||
| 868 | * |
||
| 869 | * @return PageSeo |
||
| 870 | */ |
||
| 871 | public function setMetaRobotsFollow($metaRobotsFollow, $locale = null) |
||
| 878 | |||
| 879 | /** |
||
| 880 | * Get metaRobotsFollow w/ proxy. |
||
| 881 | * |
||
| 882 | * @return string |
||
| 883 | */ |
||
| 884 | public function getMetaRobotsFollow() |
||
| 888 | |||
| 889 | /** |
||
| 890 | * Set metaRobotsAdvanced w/ proxy. |
||
| 891 | * |
||
| 892 | * @param string $metaRobotsAdvanced |
||
| 893 | * |
||
| 894 | * @return PageSeo |
||
| 895 | */ |
||
| 896 | public function setMetaRobotsAdvanced($metaRobotsAdvanced, $locale = null) |
||
| 903 | |||
| 904 | /** |
||
| 905 | * Get metaRobotsAdvanced w/ proxy. |
||
| 906 | * |
||
| 907 | * @return string |
||
| 908 | */ |
||
| 909 | public function getMetaRobotsAdvanced() |
||
| 913 | |||
| 914 | /** |
||
| 915 | * Set sitemapIndexed w/ proxy. |
||
| 916 | * |
||
| 917 | * @param bool $sitemapIndexed |
||
| 918 | * |
||
| 919 | * @return PageSeo |
||
| 920 | */ |
||
| 921 | public function setSitemapIndexed($sitemapIndexed, $locale = null) |
||
| 928 | |||
| 929 | /** |
||
| 930 | * Get sitemapIndexed. |
||
| 931 | * |
||
| 932 | * @return bool |
||
| 933 | */ |
||
| 934 | public function isSitemapIndexed() |
||
| 935 | { |
||
| 936 | return PropertyAccess::createPropertyAccessor()->getValue($this->translate(null, false), 'isSitemapIndexed'); |
||
| 937 | } |
||
| 938 | |||
| 939 | /** |
||
| 940 | * Set sitemapPriority w/ proxy. |
||
| 941 | * |
||
| 942 | * @param float $sitemapPriority |
||
| 943 | * |
||
| 944 | * @return PageSeo |
||
| 945 | */ |
||
| 946 | public function setSitemapPriority($sitemapPriority, $locale = null) |
||
| 953 | |||
| 954 | /** |
||
| 955 | * Get sitemapPriority w/ proxy. |
||
| 956 | * |
||
| 957 | * @return float |
||
| 958 | */ |
||
| 959 | public function getSitemapPriority() |
||
| 963 | |||
| 964 | /** |
||
| 965 | * Set sitemapChangeFreq w/ proxy. |
||
| 966 | * |
||
| 967 | * @param float $sitemapChangeFreq |
||
| 968 | * |
||
| 969 | * @return PageSeo |
||
| 970 | */ |
||
| 971 | public function setSitemapChangeFreq($sitemapChangeFreq, $locale = null) |
||
| 978 | |||
| 979 | /** |
||
| 980 | * Get sitemapChangeFreq w/ proxy. |
||
| 981 | * |
||
| 982 | * @return float |
||
| 983 | */ |
||
| 984 | public function getSitemapChangeFreq() |
||
| 988 | |||
| 989 | /** |
||
| 990 | * Set relCanonical w/ proxy. |
||
| 991 | * |
||
| 992 | * @param string $relCanonical |
||
| 993 | * |
||
| 994 | * @return PageSeo |
||
| 995 | */ |
||
| 996 | public function setRelCanonical($relCanonical, $locale = null) |
||
| 1003 | |||
| 1004 | /** |
||
| 1005 | * Get relCanonical w/ proxy. |
||
| 1006 | * |
||
| 1007 | * @return string |
||
| 1008 | */ |
||
| 1009 | public function getRelCanonical() |
||
| 1013 | |||
| 1014 | /** |
||
| 1015 | * Set keyword w/ proxy. |
||
| 1016 | * |
||
| 1017 | * @param string $keyword |
||
| 1018 | * @param null $locale |
||
| 1019 | * |
||
| 1020 | * @return PageSeo |
||
| 1021 | */ |
||
| 1022 | public function setKeyword($keyword, $locale = null) |
||
| 1029 | |||
| 1030 | /** |
||
| 1031 | * Get keyword w/ proxy. |
||
| 1032 | * |
||
| 1033 | * @return string |
||
| 1034 | */ |
||
| 1035 | public function getKeyword() |
||
| 1039 | } |
||
| 1040 |