Skip to content

Commit

Permalink
refactor: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
shpran committed Oct 13, 2021
1 parent 65dd090 commit e190469
Showing 1 changed file with 0 additions and 62 deletions.
62 changes: 0 additions & 62 deletions actions/class.PropertyValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,59 +28,6 @@
use oat\tao\model\Lists\Presentation\Web\RequestHandler\ValueCollectionSearchRequestHandler;
use oat\tao\model\Lists\DataAccess\Repository\DependsOnPropertyRepository;
use oat\generis\model\OntologyAwareTrait;
use oat\tao\model\ParamConverter\Configuration\ParamConverter;

class Subclass
{
private $value1;

private $value2;

public function __construct(string $value1, string $value2)
{
$this->value1 = $value1;
$this->value2 = $value2;
}

public function getValue1(): string
{
return $this->value1;
}

public function getValue2(): string
{
return $this->value2;
}
}

class SomeTestClass
{
/** @var string */
private $uri;

/** @var Subclass */
private $subclass;

public function __construct(Subclass $subclass)
{
$this->subclass = $subclass;
}

public function getUri(): string
{
return $this->uri;
}

public function setUri(string $uri): void
{
$this->uri = $uri;
}

public function getSubclass(): Subclass
{
return $this->subclass;
}
}

class tao_actions_PropertyValues extends tao_actions_CommonModule
{
Expand Down Expand Up @@ -119,15 +66,6 @@ public function getDependOnPropertyList(): void
)
);
}

/**
* @ParamConverter("class", converter="oat.tao.param_converter.query")
*/
public function test(SomeTestClass $class): void
{
$this->setSuccessJsonResponse([]);
}

private function getRepository(): DependsOnPropertyRepository
{
return $this->getServiceLocator()->get(DependsOnPropertyRepository::class);
Expand Down

0 comments on commit e190469

Please sign in to comment.