public function properties($filter = null)
    {
        if (is_null($filter))
        {
            $properties = $this->object->getProperties();
        }
        else
        {
            $properties = $this->object->getProperties($filter);
        }

        return array_map([$this, 'extractComment'], $properties);
    }