Dotink\Parody\Mime::onGet PHP Method

onGet() public method

Opens a property on the quip object
public onGet ( string $property ) : Mime
$property string The name of the property to open
return Mime The mime for method chaining
    public function onGet($property)
    {
        if (!$this->quip) {
            $this->resolve(self::create($this->class, TRUE));
        }
        if ($this->openMethod || $this->openProperty) {
            throw new \Exception(sprintf('Cannot mimick property %s without first give()-ing a return for %s', $property, $this->openMethod ?: $this->openProperty));
        }
        $this->openProperty = $property;
        return $this;
    }