| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class Vtiger_GetMultiReference_Relation extends \App\Relation\RelationAbstraction |
||
| 16 | { |
||
| 17 | /** {@inheritdoc} */ |
||
| 18 | public function getRelationType(): int |
||
| 19 | { |
||
| 20 | return Vtiger_Relation_Model::RELATION_MR; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** {@inheritdoc} */ |
||
| 24 | public function getQuery() |
||
| 25 | { |
||
| 26 | $relationField = $this->relationModel->getRelationField(); |
||
| 27 | $queryGenerator = $this->relationModel->getQueryGenerator(); |
||
| 28 | $queryGenerator->addCondition($relationField->getName(), $this->relationModel->getParentRecord()->getId(), 'c'); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** {@inheritdoc} */ |
||
| 32 | public function create(int $sourceRecordId, int $destinationRecordId): bool |
||
| 33 | { |
||
| 34 | return false; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** {@inheritdoc} */ |
||
| 38 | public function transfer(int $relatedRecordId, int $fromRecordId, int $toRecordId): bool |
||
| 39 | { |
||
| 40 | return false; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** {@inheritdoc} */ |
||
| 44 | public function delete(int $sourceRecordId, int $destinationRecordId): bool |
||
| 47 | } |
||
| 48 | } |
||
| 49 |