public function createFrom($properties)
{
if (isset($properties['selector'])) {
$this->withSelector($properties['selector']);
}
if (isset($properties['attribute'])) {
$this->withAttribute($properties['attribute']);
}
if (isset($properties['prefix'])) {
$this->withPrefix($properties['prefix']);
}
if (isset($properties['suffix'])) {
$this->withSuffix($properties['suffix']);
}
}