src/View/ViewableData.php
public function setFailover(ViewableData $failover)
    {
        // Ensure cached methods from previous failover are removed
        if ($this->failover) {
            $this->removeMethodsFrom('failover');
        }

        $this->failover = $failover;
        $this->defineMethods();
    }
public function setFailover(ViewableData $failover)
    {
        // Ensure cached methods from previous failover are removed
        if ($this->failover) {
            $this->removeMethodsFrom('failover');
        }

        $this->failover = $failover;
        $this->defineMethods();
    }
public function setFailover ( ViewableData $ failover ) { // Ensure cached methods from previous failover are removed if ( $ this -> failover ) { $ this -> removeMethodsFrom ( 'failover' ) ; } $ this -> failover = $ failover ; $ this -> defineMethods ( ) ; }
Set a failover object to attempt to get data from if it is not present on this object.

@param ViewableData $failover
Set a failover object to attempt to get data from if it is not present on this object .