public function createFrom()

in src/Facebook/InstantArticles/Transformer/Getters/StringGetter.php [30:44]


    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']);
        }
    }