| Total Complexity | 57 |
| Total Lines | 816 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
Complex classes like CStudentPublication 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.
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 CStudentPublication, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 24 | class CStudentPublication extends AbstractResource implements ResourceInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | * |
||
| 29 | * @ORM\Column(name="iid", type="integer") |
||
| 30 | * @ORM\Id |
||
| 31 | * @ORM\GeneratedValue |
||
| 32 | */ |
||
| 33 | protected $iid; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var int |
||
| 37 | * |
||
| 38 | * @ORM\Column(name="c_id", type="integer") |
||
| 39 | */ |
||
| 40 | protected $cId; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var int |
||
| 44 | * |
||
| 45 | * @ORM\Column(name="id", type="integer", nullable=true) |
||
| 46 | */ |
||
| 47 | protected $id; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @var string |
||
| 51 | * |
||
| 52 | * @ORM\Column(name="url", type="string", length=255, nullable=true) |
||
| 53 | */ |
||
| 54 | protected $url; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @var string |
||
| 58 | * |
||
| 59 | * @ORM\Column(name="url_correction", type="string", length=255, nullable=true) |
||
| 60 | */ |
||
| 61 | protected $urlCorrection; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @var string |
||
| 65 | * |
||
| 66 | * @ORM\Column(name="title", type="string", length=255, nullable=true) |
||
| 67 | */ |
||
| 68 | protected $title; |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @var string |
||
| 72 | * |
||
| 73 | * @ORM\Column(name="title_correction", type="string", length=255, nullable=true) |
||
| 74 | */ |
||
| 75 | protected $titleCorrection; |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @var string |
||
| 79 | * |
||
| 80 | * @ORM\Column(name="description", type="text", nullable=true) |
||
| 81 | */ |
||
| 82 | protected $description; |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @var string |
||
| 86 | * |
||
| 87 | * @ORM\Column(name="author", type="string", length=255, nullable=true) |
||
| 88 | */ |
||
| 89 | protected $author; |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @var bool |
||
| 93 | * |
||
| 94 | * @ORM\Column(name="active", type="boolean", nullable=true) |
||
| 95 | */ |
||
| 96 | protected $active; |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @var bool |
||
| 100 | * |
||
| 101 | * @ORM\Column(name="accepted", type="boolean", nullable=true) |
||
| 102 | */ |
||
| 103 | protected $accepted; |
||
| 104 | |||
| 105 | /** |
||
| 106 | * @var int |
||
| 107 | * |
||
| 108 | * @ORM\Column(name="post_group_id", type="integer", nullable=false) |
||
| 109 | */ |
||
| 110 | protected $postGroupId; |
||
| 111 | |||
| 112 | /** |
||
| 113 | * @var \DateTime |
||
| 114 | * |
||
| 115 | * @ORM\Column(name="sent_date", type="datetime", nullable=true) |
||
| 116 | */ |
||
| 117 | protected $sentDate; |
||
| 118 | |||
| 119 | /** |
||
| 120 | * @var string |
||
| 121 | * |
||
| 122 | * @ORM\Column(name="filetype", type="string", length=10, nullable=false) |
||
| 123 | */ |
||
| 124 | protected $filetype; |
||
| 125 | |||
| 126 | /** |
||
| 127 | * @var int |
||
| 128 | * |
||
| 129 | * @ORM\Column(name="has_properties", type="integer", nullable=false) |
||
| 130 | */ |
||
| 131 | protected $hasProperties; |
||
| 132 | |||
| 133 | /** |
||
| 134 | * @var bool |
||
| 135 | * |
||
| 136 | * @ORM\Column(name="view_properties", type="boolean", nullable=true) |
||
| 137 | */ |
||
| 138 | protected $viewProperties; |
||
| 139 | |||
| 140 | /** |
||
| 141 | * @var float |
||
| 142 | * |
||
| 143 | * @ORM\Column(name="qualification", type="float", precision=6, scale=2, nullable=false) |
||
| 144 | */ |
||
| 145 | protected $qualification; |
||
| 146 | |||
| 147 | /** |
||
| 148 | * @var \DateTime |
||
| 149 | * |
||
| 150 | * @ORM\Column(name="date_of_qualification", type="datetime", nullable=true) |
||
| 151 | */ |
||
| 152 | protected $dateOfQualification; |
||
| 153 | |||
| 154 | /** |
||
| 155 | * @var int |
||
| 156 | * |
||
| 157 | * @ORM\Column(name="parent_id", type="integer", nullable=false) |
||
| 158 | */ |
||
| 159 | protected $parentId; |
||
| 160 | |||
| 161 | /** |
||
| 162 | * @var int |
||
| 163 | * |
||
| 164 | * @ORM\Column(name="qualificator_id", type="integer", nullable=false) |
||
| 165 | */ |
||
| 166 | protected $qualificatorId; |
||
| 167 | |||
| 168 | /** |
||
| 169 | * @var float |
||
| 170 | * |
||
| 171 | * @ORM\Column(name="weight", type="float", precision=6, scale=2, nullable=false) |
||
| 172 | */ |
||
| 173 | protected $weight; |
||
| 174 | |||
| 175 | /** |
||
| 176 | * @var Session |
||
| 177 | * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Session", inversedBy="studentPublications") |
||
| 178 | * @ORM\JoinColumn(name="session_id", referencedColumnName="id") |
||
| 179 | */ |
||
| 180 | protected $session; |
||
| 181 | |||
| 182 | /** |
||
| 183 | * @var int |
||
| 184 | * |
||
| 185 | * @ORM\Column(name="user_id", type="integer", nullable=false) |
||
| 186 | */ |
||
| 187 | protected $userId; |
||
| 188 | |||
| 189 | /** |
||
| 190 | * @var int |
||
| 191 | * |
||
| 192 | * @ORM\Column(name="allow_text_assignment", type="integer", nullable=false) |
||
| 193 | */ |
||
| 194 | protected $allowTextAssignment; |
||
| 195 | |||
| 196 | /** |
||
| 197 | * @var int |
||
| 198 | * |
||
| 199 | * @ORM\Column(name="contains_file", type="integer", nullable=false) |
||
| 200 | */ |
||
| 201 | protected $containsFile; |
||
| 202 | |||
| 203 | /** |
||
| 204 | * @var int |
||
| 205 | * |
||
| 206 | * @ORM\Column(name="document_id", type="integer", nullable=false) |
||
| 207 | */ |
||
| 208 | protected $documentId; |
||
| 209 | |||
| 210 | /** |
||
| 211 | * @var int |
||
| 212 | * |
||
| 213 | * @ORM\Column(name="filesize", type="integer", nullable=true) |
||
| 214 | */ |
||
| 215 | protected $fileSize; |
||
| 216 | |||
| 217 | public function __construct() |
||
| 218 | { |
||
| 219 | $this->documentId = 0; |
||
| 220 | $this->hasProperties = 0; |
||
| 221 | $this->containsFile = 0; |
||
| 222 | $this->parentId = 0; |
||
| 223 | $this->qualificatorId = 0; |
||
| 224 | } |
||
| 225 | |||
| 226 | public function __toString(): string |
||
| 227 | { |
||
| 228 | return (string) $this->getTitle(); |
||
| 229 | } |
||
| 230 | |||
| 231 | /** |
||
| 232 | * Set url. |
||
| 233 | * |
||
| 234 | * @param string $url |
||
| 235 | * |
||
| 236 | * @return CStudentPublication |
||
| 237 | */ |
||
| 238 | public function setUrl($url) |
||
| 239 | { |
||
| 240 | $this->url = $url; |
||
| 241 | |||
| 242 | return $this; |
||
| 243 | } |
||
| 244 | |||
| 245 | /** |
||
| 246 | * Get url. |
||
| 247 | * |
||
| 248 | * @return string |
||
| 249 | */ |
||
| 250 | public function getUrl() |
||
| 251 | { |
||
| 252 | return $this->url; |
||
| 253 | } |
||
| 254 | |||
| 255 | /** |
||
| 256 | * Set title. |
||
| 257 | * |
||
| 258 | * @param string $title |
||
| 259 | * |
||
| 260 | * @return CStudentPublication |
||
| 261 | */ |
||
| 262 | public function setTitle($title) |
||
| 263 | { |
||
| 264 | $this->title = $title; |
||
| 265 | |||
| 266 | return $this; |
||
| 267 | } |
||
| 268 | |||
| 269 | /** |
||
| 270 | * Get title. |
||
| 271 | * |
||
| 272 | * @return string |
||
| 273 | */ |
||
| 274 | public function getTitle() |
||
| 275 | { |
||
| 276 | return $this->title; |
||
| 277 | } |
||
| 278 | |||
| 279 | /** |
||
| 280 | * Set description. |
||
| 281 | * |
||
| 282 | * @param string $description |
||
| 283 | * |
||
| 284 | * @return CStudentPublication |
||
| 285 | */ |
||
| 286 | public function setDescription($description) |
||
| 287 | { |
||
| 288 | $this->description = $description; |
||
| 289 | |||
| 290 | return $this; |
||
| 291 | } |
||
| 292 | |||
| 293 | /** |
||
| 294 | * Get description. |
||
| 295 | * |
||
| 296 | * @return string |
||
| 297 | */ |
||
| 298 | public function getDescription() |
||
| 299 | { |
||
| 300 | return $this->description; |
||
| 301 | } |
||
| 302 | |||
| 303 | /** |
||
| 304 | * Set author. |
||
| 305 | * |
||
| 306 | * @param string $author |
||
| 307 | * |
||
| 308 | * @return CStudentPublication |
||
| 309 | */ |
||
| 310 | public function setAuthor($author) |
||
| 311 | { |
||
| 312 | $this->author = $author; |
||
| 313 | |||
| 314 | return $this; |
||
| 315 | } |
||
| 316 | |||
| 317 | /** |
||
| 318 | * Get author. |
||
| 319 | * |
||
| 320 | * @return string |
||
| 321 | */ |
||
| 322 | public function getAuthor() |
||
| 323 | { |
||
| 324 | return $this->author; |
||
| 325 | } |
||
| 326 | |||
| 327 | /** |
||
| 328 | * Set active. |
||
| 329 | * |
||
| 330 | * @param bool $active |
||
| 331 | * |
||
| 332 | * @return CStudentPublication |
||
| 333 | */ |
||
| 334 | public function setActive($active) |
||
| 335 | { |
||
| 336 | $this->active = $active; |
||
| 337 | |||
| 338 | return $this; |
||
| 339 | } |
||
| 340 | |||
| 341 | /** |
||
| 342 | * Get active. |
||
| 343 | * |
||
| 344 | * @return bool |
||
| 345 | */ |
||
| 346 | public function getActive() |
||
| 347 | { |
||
| 348 | return $this->active; |
||
| 349 | } |
||
| 350 | |||
| 351 | /** |
||
| 352 | * Set accepted. |
||
| 353 | * |
||
| 354 | * @param bool $accepted |
||
| 355 | * |
||
| 356 | * @return CStudentPublication |
||
| 357 | */ |
||
| 358 | public function setAccepted($accepted) |
||
| 359 | { |
||
| 360 | $this->accepted = $accepted; |
||
| 361 | |||
| 362 | return $this; |
||
| 363 | } |
||
| 364 | |||
| 365 | /** |
||
| 366 | * Get accepted. |
||
| 367 | * |
||
| 368 | * @return bool |
||
| 369 | */ |
||
| 370 | public function getAccepted() |
||
| 371 | { |
||
| 372 | return $this->accepted; |
||
| 373 | } |
||
| 374 | |||
| 375 | /** |
||
| 376 | * Set postGroupId. |
||
| 377 | * |
||
| 378 | * @param int $postGroupId |
||
| 379 | * |
||
| 380 | * @return CStudentPublication |
||
| 381 | */ |
||
| 382 | public function setPostGroupId($postGroupId) |
||
| 383 | { |
||
| 384 | $this->postGroupId = $postGroupId; |
||
| 385 | |||
| 386 | return $this; |
||
| 387 | } |
||
| 388 | |||
| 389 | /** |
||
| 390 | * Get postGroupId. |
||
| 391 | * |
||
| 392 | * @return int |
||
| 393 | */ |
||
| 394 | public function getPostGroupId() |
||
| 395 | { |
||
| 396 | return $this->postGroupId; |
||
| 397 | } |
||
| 398 | |||
| 399 | /** |
||
| 400 | * Set sentDate. |
||
| 401 | * |
||
| 402 | * @param \DateTime $sentDate |
||
| 403 | * |
||
| 404 | * @return CStudentPublication |
||
| 405 | */ |
||
| 406 | public function setSentDate($sentDate) |
||
| 407 | { |
||
| 408 | $this->sentDate = $sentDate; |
||
| 409 | |||
| 410 | return $this; |
||
| 411 | } |
||
| 412 | |||
| 413 | /** |
||
| 414 | * Get sentDate. |
||
| 415 | * |
||
| 416 | * @return \DateTime |
||
| 417 | */ |
||
| 418 | public function getSentDate() |
||
| 419 | { |
||
| 420 | return $this->sentDate; |
||
| 421 | } |
||
| 422 | |||
| 423 | /** |
||
| 424 | * Set filetype. |
||
| 425 | * |
||
| 426 | * @param string $filetype |
||
| 427 | * |
||
| 428 | * @return CStudentPublication |
||
| 429 | */ |
||
| 430 | public function setFiletype($filetype) |
||
| 431 | { |
||
| 432 | $this->filetype = $filetype; |
||
| 433 | |||
| 434 | return $this; |
||
| 435 | } |
||
| 436 | |||
| 437 | /** |
||
| 438 | * Get filetype. |
||
| 439 | * |
||
| 440 | * @return string |
||
| 441 | */ |
||
| 442 | public function getFiletype() |
||
| 443 | { |
||
| 444 | return $this->filetype; |
||
| 445 | } |
||
| 446 | |||
| 447 | /** |
||
| 448 | * Set hasProperties. |
||
| 449 | * |
||
| 450 | * @param int $hasProperties |
||
| 451 | * |
||
| 452 | * @return CStudentPublication |
||
| 453 | */ |
||
| 454 | public function setHasProperties($hasProperties) |
||
| 455 | { |
||
| 456 | $this->hasProperties = $hasProperties; |
||
| 457 | |||
| 458 | return $this; |
||
| 459 | } |
||
| 460 | |||
| 461 | /** |
||
| 462 | * Get hasProperties. |
||
| 463 | * |
||
| 464 | * @return int |
||
| 465 | */ |
||
| 466 | public function getHasProperties() |
||
| 467 | { |
||
| 468 | return $this->hasProperties; |
||
| 469 | } |
||
| 470 | |||
| 471 | /** |
||
| 472 | * Set viewProperties. |
||
| 473 | * |
||
| 474 | * @param bool $viewProperties |
||
| 475 | * |
||
| 476 | * @return CStudentPublication |
||
| 477 | */ |
||
| 478 | public function setViewProperties($viewProperties) |
||
| 479 | { |
||
| 480 | $this->viewProperties = $viewProperties; |
||
| 481 | |||
| 482 | return $this; |
||
| 483 | } |
||
| 484 | |||
| 485 | /** |
||
| 486 | * Get viewProperties. |
||
| 487 | * |
||
| 488 | * @return bool |
||
| 489 | */ |
||
| 490 | public function getViewProperties() |
||
| 491 | { |
||
| 492 | return $this->viewProperties; |
||
| 493 | } |
||
| 494 | |||
| 495 | /** |
||
| 496 | * Set qualification. |
||
| 497 | * |
||
| 498 | * @param float $qualification |
||
| 499 | * |
||
| 500 | * @return CStudentPublication |
||
| 501 | */ |
||
| 502 | public function setQualification($qualification) |
||
| 503 | { |
||
| 504 | $this->qualification = $qualification; |
||
| 505 | |||
| 506 | return $this; |
||
| 507 | } |
||
| 508 | |||
| 509 | /** |
||
| 510 | * Get qualification. |
||
| 511 | * |
||
| 512 | * @return float |
||
| 513 | */ |
||
| 514 | public function getQualification() |
||
| 515 | { |
||
| 516 | return $this->qualification; |
||
| 517 | } |
||
| 518 | |||
| 519 | /** |
||
| 520 | * Set dateOfQualification. |
||
| 521 | * |
||
| 522 | * @param \DateTime $dateOfQualification |
||
| 523 | * |
||
| 524 | * @return CStudentPublication |
||
| 525 | */ |
||
| 526 | public function setDateOfQualification($dateOfQualification) |
||
| 527 | { |
||
| 528 | $this->dateOfQualification = $dateOfQualification; |
||
| 529 | |||
| 530 | return $this; |
||
| 531 | } |
||
| 532 | |||
| 533 | /** |
||
| 534 | * Get dateOfQualification. |
||
| 535 | * |
||
| 536 | * @return \DateTime |
||
| 537 | */ |
||
| 538 | public function getDateOfQualification() |
||
| 539 | { |
||
| 540 | return $this->dateOfQualification; |
||
| 541 | } |
||
| 542 | |||
| 543 | /** |
||
| 544 | * Set parentId. |
||
| 545 | * |
||
| 546 | * @param int $parentId |
||
| 547 | * |
||
| 548 | * @return CStudentPublication |
||
| 549 | */ |
||
| 550 | public function setParentId($parentId) |
||
| 551 | { |
||
| 552 | $this->parentId = $parentId; |
||
| 553 | |||
| 554 | return $this; |
||
| 555 | } |
||
| 556 | |||
| 557 | /** |
||
| 558 | * Get parentId. |
||
| 559 | * |
||
| 560 | * @return int |
||
| 561 | */ |
||
| 562 | public function getParentId() |
||
| 563 | { |
||
| 564 | return $this->parentId; |
||
| 565 | } |
||
| 566 | |||
| 567 | /** |
||
| 568 | * Set qualificatorId. |
||
| 569 | * |
||
| 570 | * @param int $qualificatorId |
||
| 571 | * |
||
| 572 | * @return CStudentPublication |
||
| 573 | */ |
||
| 574 | public function setQualificatorId($qualificatorId) |
||
| 575 | { |
||
| 576 | $this->qualificatorId = $qualificatorId; |
||
| 577 | |||
| 578 | return $this; |
||
| 579 | } |
||
| 580 | |||
| 581 | /** |
||
| 582 | * Get qualificatorId. |
||
| 583 | * |
||
| 584 | * @return int |
||
| 585 | */ |
||
| 586 | public function getQualificatorId() |
||
| 587 | { |
||
| 588 | return $this->qualificatorId; |
||
| 589 | } |
||
| 590 | |||
| 591 | /** |
||
| 592 | * Set weight. |
||
| 593 | * |
||
| 594 | * @param float $weight |
||
| 595 | * |
||
| 596 | * @return CStudentPublication |
||
| 597 | */ |
||
| 598 | public function setWeight($weight) |
||
| 599 | { |
||
| 600 | $this->weight = $weight; |
||
| 601 | |||
| 602 | return $this; |
||
| 603 | } |
||
| 604 | |||
| 605 | /** |
||
| 606 | * Get weight. |
||
| 607 | * |
||
| 608 | * @return float |
||
| 609 | */ |
||
| 610 | public function getWeight() |
||
| 611 | { |
||
| 612 | return $this->weight; |
||
| 613 | } |
||
| 614 | |||
| 615 | /** |
||
| 616 | * Set session. |
||
| 617 | * |
||
| 618 | * @param Session $session |
||
| 619 | * |
||
| 620 | * @return CStudentPublication |
||
| 621 | */ |
||
| 622 | public function setSession(Session $session = null) |
||
| 623 | { |
||
| 624 | $this->session = $session; |
||
| 625 | |||
| 626 | return $this; |
||
| 627 | } |
||
| 628 | |||
| 629 | /** |
||
| 630 | * Get session. |
||
| 631 | * |
||
| 632 | * @return Session |
||
| 633 | */ |
||
| 634 | public function getSession() |
||
| 635 | { |
||
| 636 | return $this->session; |
||
| 637 | } |
||
| 638 | |||
| 639 | /** |
||
| 640 | * Set userId. |
||
| 641 | * |
||
| 642 | * @param int $userId |
||
| 643 | * |
||
| 644 | * @return CStudentPublication |
||
| 645 | */ |
||
| 646 | public function setUserId($userId) |
||
| 647 | { |
||
| 648 | $this->userId = $userId; |
||
| 649 | |||
| 650 | return $this; |
||
| 651 | } |
||
| 652 | |||
| 653 | /** |
||
| 654 | * Get userId. |
||
| 655 | * |
||
| 656 | * @return int |
||
| 657 | */ |
||
| 658 | public function getUserId() |
||
| 659 | { |
||
| 660 | return $this->userId; |
||
| 661 | } |
||
| 662 | |||
| 663 | /** |
||
| 664 | * Set allowTextAssignment. |
||
| 665 | * |
||
| 666 | * @param int $allowTextAssignment |
||
| 667 | * |
||
| 668 | * @return CStudentPublication |
||
| 669 | */ |
||
| 670 | public function setAllowTextAssignment($allowTextAssignment) |
||
| 671 | { |
||
| 672 | $this->allowTextAssignment = $allowTextAssignment; |
||
| 673 | |||
| 674 | return $this; |
||
| 675 | } |
||
| 676 | |||
| 677 | /** |
||
| 678 | * Get allowTextAssignment. |
||
| 679 | * |
||
| 680 | * @return int |
||
| 681 | */ |
||
| 682 | public function getAllowTextAssignment() |
||
| 683 | { |
||
| 684 | return $this->allowTextAssignment; |
||
| 685 | } |
||
| 686 | |||
| 687 | /** |
||
| 688 | * Set containsFile. |
||
| 689 | * |
||
| 690 | * @param int $containsFile |
||
| 691 | * |
||
| 692 | * @return CStudentPublication |
||
| 693 | */ |
||
| 694 | public function setContainsFile($containsFile) |
||
| 695 | { |
||
| 696 | $this->containsFile = $containsFile; |
||
| 697 | |||
| 698 | return $this; |
||
| 699 | } |
||
| 700 | |||
| 701 | /** |
||
| 702 | * Get containsFile. |
||
| 703 | * |
||
| 704 | * @return int |
||
| 705 | */ |
||
| 706 | public function getContainsFile() |
||
| 707 | { |
||
| 708 | return $this->containsFile; |
||
| 709 | } |
||
| 710 | |||
| 711 | /** |
||
| 712 | * Set id. |
||
| 713 | * |
||
| 714 | * @param int $id |
||
| 715 | * |
||
| 716 | * @return CStudentPublication |
||
| 717 | */ |
||
| 718 | public function setId($id) |
||
| 719 | { |
||
| 720 | $this->id = $id; |
||
| 721 | |||
| 722 | return $this; |
||
| 723 | } |
||
| 724 | |||
| 725 | /** |
||
| 726 | * Get id. |
||
| 727 | * |
||
| 728 | * @return int |
||
| 729 | */ |
||
| 730 | public function getId() |
||
| 731 | { |
||
| 732 | return $this->id; |
||
| 733 | } |
||
| 734 | |||
| 735 | /** |
||
| 736 | * Set cId. |
||
| 737 | * |
||
| 738 | * @param int $cId |
||
| 739 | * |
||
| 740 | * @return CStudentPublication |
||
| 741 | */ |
||
| 742 | public function setCId($cId) |
||
| 743 | { |
||
| 744 | $this->cId = $cId; |
||
| 745 | |||
| 746 | return $this; |
||
| 747 | } |
||
| 748 | |||
| 749 | /** |
||
| 750 | * Get cId. |
||
| 751 | * |
||
| 752 | * @return int |
||
| 753 | */ |
||
| 754 | public function getCId() |
||
| 755 | { |
||
| 756 | return $this->cId; |
||
| 757 | } |
||
| 758 | |||
| 759 | /** |
||
| 760 | * @return string |
||
| 761 | */ |
||
| 762 | public function getUrlCorrection() |
||
| 763 | { |
||
| 764 | return $this->urlCorrection; |
||
| 765 | } |
||
| 766 | |||
| 767 | /** |
||
| 768 | * @param string $urlCorrection |
||
| 769 | */ |
||
| 770 | public function setUrlCorrection($urlCorrection) |
||
| 771 | { |
||
| 772 | $this->urlCorrection = $urlCorrection; |
||
| 773 | } |
||
| 774 | |||
| 775 | /** |
||
| 776 | * @return string |
||
| 777 | */ |
||
| 778 | public function getTitleCorrection() |
||
| 781 | } |
||
| 782 | |||
| 783 | /** |
||
| 784 | * @param string $titleCorrection |
||
| 785 | */ |
||
| 786 | public function setTitleCorrection($titleCorrection) |
||
| 787 | { |
||
| 788 | $this->titleCorrection = $titleCorrection; |
||
| 789 | } |
||
| 790 | |||
| 791 | /** |
||
| 792 | * @return int |
||
| 793 | */ |
||
| 794 | public function getDocumentId() |
||
| 795 | { |
||
| 796 | return $this->documentId; |
||
| 797 | } |
||
| 798 | |||
| 799 | /** |
||
| 800 | * @param int $documentId |
||
| 801 | */ |
||
| 802 | public function setDocumentId($documentId) |
||
| 803 | { |
||
| 804 | $this->documentId = $documentId; |
||
| 805 | } |
||
| 806 | |||
| 807 | /** |
||
| 808 | * Get iid. |
||
| 809 | * |
||
| 810 | * @return int |
||
| 811 | */ |
||
| 812 | public function getIid() |
||
| 815 | } |
||
| 816 | |||
| 817 | public function getFileSize(): int |
||
| 818 | { |
||
| 819 | return $this->fileSize; |
||
| 820 | } |
||
| 821 | |||
| 822 | public function setFileSize(int $fileSize): CStudentPublication |
||
| 827 | } |
||
| 828 | |||
| 829 | /** |
||
| 830 | * Resource identifier. |
||
| 831 | */ |
||
| 832 | public function getResourceIdentifier(): int |
||
| 833 | { |
||
| 834 | return $this->getIid(); |
||
| 835 | } |
||
| 836 | |||
| 837 | public function getResourceName(): string |
||
| 840 | } |
||
| 841 | } |
||
| 842 |