Facebook\InstantArticles\Transformer\Getters\StringGetter::createFrom PHP Method

createFrom() public method

public createFrom ( $properties )
    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']);
        }
    }