lithium\data\Collection::key PHP 메소드

key() 공개 메소드

Returns the currently pointed to record's unique key.
public key ( boolean $full = false ) : mixed
$full boolean If true, returns the complete key.
리턴 mixed
    public function key($full = false)
    {
        if ($this->_started === false) {
            $this->current();
        }
        if ($this->_valid) {
            $key = key($this->_data);
            return is_array($key) && !$full ? reset($key) : $key;
        }
        return null;
    }