src/File_MARC_Reference.php
public function ref($spec, $value)
    {
        array_push($this->data, $value);
        /*
        * set content
        */
        $value = $this->cache->getContents($spec, [$value]);
        $this->content = array_merge($this->content, $value);
    }
public function ref($spec, $value)
    {
        array_push($this->data, $value);
        /*
        * set content
        */
        $value = $this->cache->getContents($spec, [$value]);
        $this->content = array_merge($this->content, $value);
    }
public function ref ( $ spec , $ value ) { array_push ( $ this -> data , $ value ) ; /*
        * set content
        */ $ value = $ this -> cache -> getContents ( $ spec , [ $ value ] ) ; $ this -> content = array_merge ( $ this -> content , $ value ) ; }
Reference data and set content.

@param FieldInterface|SubfieldInterface          $spec  The corresponding spec
@param string|File_MARC_Field|File_MARC_Subfield $value The value to reference
Reference data and set content .