src/Generator.php
public function loadStickyAttributes()
    {
        $stickyAttributes = $this->stickyAttributes();
        $path = $this->getStickyDataFile();
        if (is_file($path)) {
            $result = json_decode(file_get_contents($path), true);
            if (is_array($result)) {
                foreach ($stickyAttributes as $name) {
                    if (isset($result[$name])) {
                        $this->$name = $result[$name];
                    }
                }
            }
        }
    }
public function loadStickyAttributes()
    {
        $stickyAttributes = $this->stickyAttributes();
        $path = $this->getStickyDataFile();
        if (is_file($path)) {
            $result = json_decode(file_get_contents($path), true);
            if (is_array($result)) {
                foreach ($stickyAttributes as $name) {
                    if (isset($result[$name])) {
                        $this->$name = $result[$name];
                    }
                }
            }
        }
    }
public function loadStickyAttributes ( ) { $ stickyAttributes = $ this -> stickyAttributes ( ) ; $ path = $ this -> getStickyDataFile ( ) ; if ( is_file ( $ path ) ) { $ result = json_decode ( file_get_contents ( $ path ) , true ) ; if ( is_array ( $ result ) ) { foreach ( $ stickyAttributes as $ name ) { if ( isset ( $ result [ $ name ] ) ) { $ this -> $ name = $ result [ $ name ] ; } } } } }
Loads sticky attributes from an internal file and populates them into the generator.
@internal
Loads sticky attributes from an internal file and populates them into the generator .