{$device}->positionType ) && $this->{$device}->positionType != 'absolute' ) { return ''; } if ( isset( $this->{$device}->x->value ) ) { $x = "x:" . $this->{$device}->x->value . $this->{$device}->x->unit . ";"; } if ( isset( $this->{$device}->y->value ) ) { $y = "y:" . $this->{$device}->y->value . $this->{$device}->y->unit . ";"; } if ( isset( $this->{$device}->origin ) ) { $origin = "origin:" . $this->{$device}->origin; } return $x . $y . $origin; } public function getPositionType( $device ) { return $this->{$device}->positionType ?? ''; } }