Minor - format code

pull/3904/head
Julio Montoya 4 years ago
parent 5fd1d8b66a
commit 8b2acb6723
  1. 4
      src/CoreBundle/Entity/Sequence.php
  2. 13
      src/CoreBundle/Entity/SequenceCondition.php
  3. 10
      src/CoreBundle/Entity/SequenceFormula.php
  4. 10
      src/CoreBundle/Entity/SequenceMethod.php
  5. 6
      src/CoreBundle/Entity/SequenceResource.php
  6. 10
      src/CoreBundle/Entity/SequenceRowEntity.php
  7. 2
      src/CoreBundle/Entity/SequenceRule.php
  8. 4
      src/CoreBundle/Entity/SequenceRuleCondition.php
  9. 12
      src/CoreBundle/Entity/SequenceRuleMethod.php
  10. 6
      src/CoreBundle/Entity/SequenceTypeEntity.php
  11. 6
      src/CoreBundle/Entity/SequenceValid.php
  12. 16
      src/CoreBundle/Entity/SequenceValue.php
  13. 6
      src/CoreBundle/Entity/SequenceVariable.php

@ -61,7 +61,7 @@ class Sequence
/** /**
* @return Sequence * @return Sequence
*/ */
public function setName(string $name) public function setName(string $name): self
{ {
$this->name = $name; $this->name = $name;
@ -79,7 +79,7 @@ class Sequence
/** /**
* @return Sequence * @return Sequence
*/ */
public function setGraph(string $graph) public function setGraph(string $graph): self
{ {
$this->graph = $graph; $this->graph = $graph;

@ -69,7 +69,7 @@ class SequenceCondition
/** /**
* @return SequenceCondition * @return SequenceCondition
*/ */
public function setDescription(string $description) public function setDescription(string $description): self
{ {
$this->description = $description; $this->description = $description;
@ -84,10 +84,7 @@ class SequenceCondition
return $this->mathOperation; return $this->mathOperation;
} }
/** public function setMathOperation(string $mathOperation): self
* @return SequenceCondition
*/
public function setMathOperation(string $mathOperation)
{ {
$this->mathOperation = $mathOperation; $this->mathOperation = $mathOperation;
@ -105,7 +102,7 @@ class SequenceCondition
/** /**
* @return SequenceCondition * @return SequenceCondition
*/ */
public function setParam(string $param) public function setParam(string $param): self
{ {
$this->param = $param; $this->param = $param;
@ -123,7 +120,7 @@ class SequenceCondition
/** /**
* @return SequenceCondition * @return SequenceCondition
*/ */
public function setActTrue(string $actTrue) public function setActTrue(string $actTrue): self
{ {
$this->actTrue = $actTrue; $this->actTrue = $actTrue;
@ -141,7 +138,7 @@ class SequenceCondition
/** /**
* @return SequenceCondition * @return SequenceCondition
*/ */
public function setActFalse(string $actFalse) public function setActFalse(string $actFalse): self
{ {
$this->actFalse = $actFalse; $this->actFalse = $actFalse;

@ -50,10 +50,7 @@ class SequenceFormula
return $this->method; return $this->method;
} }
/** public function setMethod(?SequenceMethod $method): self
* @return SequenceFormula
*/
public function setMethod(?SequenceMethod $method)
{ {
$this->method = $method; $this->method = $method;
@ -65,10 +62,7 @@ class SequenceFormula
return $this->variable; return $this->variable;
} }
/** public function setVariable(?SequenceVariable $variable): self
* @return SequenceFormula
*/
public function setVariable(?SequenceVariable $variable)
{ {
$this->variable = $variable; $this->variable = $variable;

@ -69,7 +69,7 @@ class SequenceMethod
/** /**
* @return SequenceMethod * @return SequenceMethod
*/ */
public function setDescription(string $description) public function setDescription(string $description): self
{ {
$this->description = $description; $this->description = $description;
@ -87,7 +87,7 @@ class SequenceMethod
/** /**
* @return SequenceMethod * @return SequenceMethod
*/ */
public function setFormula(string $formula) public function setFormula(string $formula): self
{ {
$this->formula = $formula; $this->formula = $formula;
@ -105,7 +105,7 @@ class SequenceMethod
/** /**
* @return SequenceMethod * @return SequenceMethod
*/ */
public function setAssign(string $assign) public function setAssign(string $assign): self
{ {
$this->assign = $assign; $this->assign = $assign;
@ -123,7 +123,7 @@ class SequenceMethod
/** /**
* @return SequenceMethod * @return SequenceMethod
*/ */
public function setMetType(string $metType) public function setMetType(string $metType): self
{ {
$this->metType = $metType; $this->metType = $metType;
@ -141,7 +141,7 @@ class SequenceMethod
/** /**
* @return SequenceMethod * @return SequenceMethod
*/ */
public function setActFalse(string $actFalse) public function setActFalse(string $actFalse): self
{ {
$this->actFalse = $actFalse; $this->actFalse = $actFalse;

@ -65,7 +65,7 @@ class SequenceResource
* *
* @return SequenceResource * @return SequenceResource
*/ */
public function setType(int $type) public function setType(int $type): self
{ {
$this->type = $type; $this->type = $type;
@ -101,7 +101,7 @@ class SequenceResource
/** /**
* @return $this * @return $this
*/ */
public function setResourceId(int $resourceId) public function setResourceId(int $resourceId): self
{ {
$this->resourceId = $resourceId; $this->resourceId = $resourceId;
@ -119,7 +119,7 @@ class SequenceResource
/** /**
* @return $this * @return $this
*/ */
public function setSequence(Sequence $sequence) public function setSequence(Sequence $sequence): self
{ {
$this->sequence = $sequence; $this->sequence = $sequence;

@ -70,7 +70,7 @@ class SequenceRowEntity
/** /**
* @return SequenceRowEntity * @return SequenceRowEntity
*/ */
public function setCId(int $cId) public function setCId(int $cId): self
{ {
$this->cId = $cId; $this->cId = $cId;
@ -88,7 +88,7 @@ class SequenceRowEntity
/** /**
* @return SequenceRowEntity * @return SequenceRowEntity
*/ */
public function setSessionId(int $sessionId) public function setSessionId(int $sessionId): self
{ {
$this->sessionId = $sessionId; $this->sessionId = $sessionId;
@ -106,7 +106,7 @@ class SequenceRowEntity
/** /**
* @return SequenceRowEntity * @return SequenceRowEntity
*/ */
public function setRowId(int $rowId) public function setRowId(int $rowId): self
{ {
$this->rowId = $rowId; $this->rowId = $rowId;
@ -124,7 +124,7 @@ class SequenceRowEntity
/** /**
* @return SequenceRowEntity * @return SequenceRowEntity
*/ */
public function setName(string $name) public function setName(string $name): self
{ {
$this->name = $name; $this->name = $name;
@ -139,7 +139,7 @@ class SequenceRowEntity
/** /**
* @return SequenceRowEntity * @return SequenceRowEntity
*/ */
public function setType(?SequenceTypeEntity $type) public function setType(?SequenceTypeEntity $type): self
{ {
$this->type = $type; $this->type = $type;

@ -49,7 +49,7 @@ class SequenceRule
/** /**
* @return SequenceRule * @return SequenceRule
*/ */
public function setDescription(string $description) public function setDescription(string $description): self
{ {
$this->description = $description; $this->description = $description;

@ -53,7 +53,7 @@ class SequenceRuleCondition
/** /**
* @return SequenceRuleCondition * @return SequenceRuleCondition
*/ */
public function setRule(?SequenceRule $rule) public function setRule(?SequenceRule $rule): self
{ {
$this->rule = $rule; $this->rule = $rule;
@ -68,7 +68,7 @@ class SequenceRuleCondition
/** /**
* @return SequenceRuleCondition * @return SequenceRuleCondition
*/ */
public function setCondition(?SequenceCondition $condition) public function setCondition(?SequenceCondition $condition): self
{ {
$this->condition = $condition; $this->condition = $condition;

@ -58,9 +58,11 @@ class SequenceRuleMethod
return $this->methodOrder; return $this->methodOrder;
} }
public function setMethodOrder(string $methodOrder): void public function setMethodOrder(string $methodOrder): self
{ {
$this->methodOrder = $methodOrder; $this->methodOrder = $methodOrder;
return $this;
} }
public function getRule() public function getRule()
@ -68,9 +70,11 @@ class SequenceRuleMethod
return $this->rule; return $this->rule;
} }
public function setRule(SequenceRule $rule): void public function setRule(SequenceRule $rule): self
{ {
$this->rule = $rule; $this->rule = $rule;
return $this;
} }
public function getMethod() public function getMethod()
@ -78,8 +82,10 @@ class SequenceRuleMethod
return $this->method; return $this->method;
} }
public function setMethod(SequenceMethod $method): void public function setMethod(SequenceMethod $method): self
{ {
$this->method = $method; $this->method = $method;
return $this;
} }
} }

@ -59,7 +59,7 @@ class SequenceTypeEntity
/** /**
* @return SequenceTypeEntity * @return SequenceTypeEntity
*/ */
public function setName(string $name) public function setName(string $name): self
{ {
$this->name = $name; $this->name = $name;
@ -77,7 +77,7 @@ class SequenceTypeEntity
/** /**
* @return SequenceTypeEntity * @return SequenceTypeEntity
*/ */
public function setDescription(string $description) public function setDescription(string $description): self
{ {
$this->description = $description; $this->description = $description;
@ -95,7 +95,7 @@ class SequenceTypeEntity
/** /**
* @return SequenceTypeEntity * @return SequenceTypeEntity
*/ */
public function setEntityTable(string $entityTable) public function setEntityTable(string $entityTable): self
{ {
$this->entityTable = $entityTable; $this->entityTable = $entityTable;

@ -9,8 +9,6 @@ namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
/** /**
* Class SequenceRule.
*
* @ORM\Table(name="sequence_valid") * @ORM\Table(name="sequence_valid")
* @ORM\Entity * @ORM\Entity
*/ */
@ -53,7 +51,7 @@ class SequenceValid
/** /**
* @return SequenceValid * @return SequenceValid
*/ */
public function setVariable(?SequenceVariable $variable) public function setVariable(?SequenceVariable $variable): self
{ {
$this->variable = $variable; $this->variable = $variable;
@ -68,7 +66,7 @@ class SequenceValid
/** /**
* @return SequenceValid * @return SequenceValid
*/ */
public function setCondition(?SequenceCondition $condition) public function setCondition(?SequenceCondition $condition): self
{ {
$this->condition = $condition; $this->condition = $condition;

@ -97,7 +97,7 @@ class SequenceValue
/** /**
* @return SequenceValue * @return SequenceValue
*/ */
public function setEntity(?SequenceRowEntity $entity) public function setEntity(?SequenceRowEntity $entity): self
{ {
$this->entity = $entity; $this->entity = $entity;
@ -133,7 +133,7 @@ class SequenceValue
/** /**
* @return SequenceValue * @return SequenceValue
*/ */
public function setCompleteItems(int $completeItems) public function setCompleteItems(int $completeItems): self
{ {
$this->completeItems = $completeItems; $this->completeItems = $completeItems;
@ -151,7 +151,7 @@ class SequenceValue
/** /**
* @return SequenceValue * @return SequenceValue
*/ */
public function setTotalItems(int $totalItems) public function setTotalItems(int $totalItems): self
{ {
$this->totalItems = $totalItems; $this->totalItems = $totalItems;
@ -169,7 +169,7 @@ class SequenceValue
/** /**
* @return SequenceValue * @return SequenceValue
*/ */
public function setSuccess(int $success) public function setSuccess(int $success): self
{ {
$this->success = $success; $this->success = $success;
@ -187,7 +187,7 @@ class SequenceValue
/** /**
* @return SequenceValue * @return SequenceValue
*/ */
public function setSuccessDate(DateTime $successDate) public function setSuccessDate(DateTime $successDate): self
{ {
$this->successDate = $successDate; $this->successDate = $successDate;
@ -205,7 +205,7 @@ class SequenceValue
/** /**
* @return SequenceValue * @return SequenceValue
*/ */
public function setAvailable(int $available) public function setAvailable(int $available): self
{ {
$this->available = $available; $this->available = $available;
@ -223,7 +223,7 @@ class SequenceValue
/** /**
* @return SequenceValue * @return SequenceValue
*/ */
public function setAvailableStartDate(DateTime $availableStartDate) public function setAvailableStartDate(DateTime $availableStartDate): self
{ {
$this->availableStartDate = $availableStartDate; $this->availableStartDate = $availableStartDate;
@ -241,7 +241,7 @@ class SequenceValue
/** /**
* @return SequenceValue * @return SequenceValue
*/ */
public function setAvailableEndDate(DateTime $availableEndDate) public function setAvailableEndDate(DateTime $availableEndDate): self
{ {
$this->availableEndDate = $availableEndDate; $this->availableEndDate = $availableEndDate;

@ -61,7 +61,7 @@ class SequenceVariable
/** /**
* @return SequenceVariable * @return SequenceVariable
*/ */
public function setName(string $name) public function setName(string $name): self
{ {
$this->name = $name; $this->name = $name;
@ -79,7 +79,7 @@ class SequenceVariable
/** /**
* @return SequenceVariable * @return SequenceVariable
*/ */
public function setDefaultValue(string $defaultValue) public function setDefaultValue(string $defaultValue): self
{ {
$this->defaultValue = $defaultValue; $this->defaultValue = $defaultValue;
@ -97,7 +97,7 @@ class SequenceVariable
/** /**
* @return SequenceVariable * @return SequenceVariable
*/ */
public function setDescription(string $description) public function setDescription(string $description): self
{ {
$this->description = $description; $this->description = $description;

Loading…
Cancel
Save