lithium\data\model\Relationship::data PHP Method

data() public method

Returns the named configuration item, or all configuration data, if no parameter is given.
public data ( string $key = null ) : mixed
$key string The name of the configuration item to return, or `null` to return all items.
return mixed Returns a single configuration item (mixed), or an array of all items.
    public function data($key = null)
    {
        if (!$key) {
            return $this->_config;
        }
        return isset($this->_config[$key]) ? $this->_config[$key] : null;
    }