Skip to content

Commit a805bff

Browse files
committed
improved gist provider
1 parent a05c1d0 commit a805bff

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/Providers/Api/Gist.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ public function __construct(Adapter $adapter)
2525
}
2626
}
2727

28+
/**
29+
* {@inheritdoc}
30+
*/
31+
public function getDescription()
32+
{
33+
return $this->bag->get('description');
34+
}
35+
2836
/**
2937
* {@inheritdoc}
3038
*/
@@ -35,6 +43,22 @@ public function getType()
3543
}
3644
}
3745

46+
/**
47+
* {@inheritdoc}
48+
*/
49+
public function getAuthorName()
50+
{
51+
return $this->bag->get('owner');
52+
}
53+
54+
/**
55+
* {@inheritdoc}
56+
*/
57+
public function getPublishedTime()
58+
{
59+
return $this->bag->get('created_at');
60+
}
61+
3862
/**
3963
* {@inheritdoc}
4064
*/

0 commit comments

Comments
 (0)