CodeExplorer getSymbolPosition example
public function toArray() { $options =
[ 'id' =>
$this->
getId(),
'name' =>
$this->
getName(),
'currency' =>
$this->
getCurrency(),
'factor' =>
$this->
getFactor(),
];
if ($this->
getSymbol()) { $options['symbol'
] =
$this->
getSymbol();
} if ($this->
getSymbolPosition() > 0
) { $options['position'
] =
$this->
getSymbolPosition();
} return $options;
}}