mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 11:12:42 +01:00
39 lines
612 B
PHP
39 lines
612 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorFactSimpleSpec extends PhabricatorFactSpec {
|
||
|
|
||
|
private $type;
|
||
|
private $name;
|
||
|
private $unit;
|
||
|
|
||
|
public function __construct($type) {
|
||
|
$this->type = $type;
|
||
|
}
|
||
|
|
||
|
public function getType() {
|
||
|
return $this->type;
|
||
|
}
|
||
|
|
||
|
public function setUnit($unit) {
|
||
|
$this->unit = $unit;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getUnit() {
|
||
|
return $this->unit;
|
||
|
}
|
||
|
|
||
|
public function setName($name) {
|
||
|
$this->name = $name;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function getName() {
|
||
|
if ($this->name !== null) {
|
||
|
return $this->name;
|
||
|
}
|
||
|
return parent::getName();
|
||
|
}
|
||
|
|
||
|
}
|